String to ArrayList
How to convert comma separated String value to ArrayList ?
Solution :
private List<String> items;
private String orderedItem = "1,2,3,4,5,6,7,8,9,";
items = new ArrayList<String>(Arrays.asList(orderedItem.split(",")));
Solution :
private List<String> items;
private String orderedItem = "1,2,3,4,5,6,7,8,9,";
items = new ArrayList<String>(Arrays.asList(orderedItem.split(",")));
Comments
Post a Comment