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., lis
Try this
String[] str = {"url1","url2","url3","url4"}; ArrayList strList = new ArrayList(); for (String k:str) strList.add("'" +k+ "'"); System.out.println("Printing the list"); for(String k:strList) System.out.println(k);