insert data into list java

Solutions on MaxInterview for insert data into list java by the best coders in the world

showing results for - "insert data into list java"
Julian
02 Apr 2016
1List<String> list = new ArrayList<String>();
2list.add(s1);
3list.add(s3);
4list.add(1, s2);
5System.out.println(list);