java - how to pass text by adding double quotes before and after in android -


i want pass text adding double quotes before , after.

i have retrieved text(url) json array https://xyzabc , have stored in string.

now have add certificate , response url , trying retrieve data it(new url).

here iam trying pass string newurl = oldurl+response+certificate

and have pass url in double quotes(must in double quotes) if iam passing string newurl = "oldurl+response+certificate", total considering 1 string have append double quotes before , after newurl string without make single string.

i have tried "\"newurl""\ doent work me...suggest me solution.

try this:

newurl = "\""+oldurl+response+certificate+"\""; 

hope helps:)


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -