If you have your elements in an array, you can do something like this:
import java.util.ArrayList;
class Test1{
public static void main(String[] args) {
String[] s = {"url1","url2","url3","url4"};
ArrayList sl = new ArrayList();
for (int i = 0; i < s.length; i++) {
sl.add("'" + s[i] + "'");
}
}
}