I have a list as below

[url1,url2,url3,url4] 

This list will be based on multiple selection from drop down list of HTML. So list size i.e., list elements change dynamically. My problem is I am unable to get the logic for getting single quotes to the strings. I want the above string list to be displayed as

'url1','url2','url3','url4' 

That is single quotes (') for each string and commas (,) should not be eliminated. Please help me how to achieve this using Java.

Edit
Report