In my application I want use this Library for show ArrayList
items.
My ArrayList from server:
\"genres\": [
\"Action\",
Although it is late, just case if someone else comes to this thread... If you are using Java 8, you can use streaming and Collectors interfaces like the following:
List cloudChipList = new ArrayList();
cloudChipList.add("Action");
cloudChipList.add("Comedy");
cloudChipList.add("Family");
String result = cloudChipList.stream().collect(Collectors.joining(" , ", "Genre: ", "\n"));
System.out.println(result);
Here Collectors.joining
adds delimiter, prefix and suffix to the result, but it has an option with only the delimter, too.