Back
List<String> ids = new ArrayList<String>();ids.add("1");ids.add("2");ids.add("3");ids.add("4");
List<String> ids = new ArrayList<String>();
ids.add("1");
ids.add("2");
ids.add("3");
ids.add("4");
Now i want an output from this list as 1,2,3,4 without explicitly iterating over it.
On Android use:
android.text.TextUtils.join(",", ids);
31k questions
32.8k answers
501 comments
693 users