How to convert an ArrayList to a String in Java? The toString method returns it as [a,b,c] string - I wa
ArrayList
String
toString
[a,b,c]
Many solutions available. You can iterate over the chars and append to a StringBuilder, then when finished appending, call .toString on the StringBuilder.
Or use something like commons-lang StringUtils.join from the apache commons-lang project.