OK, so I have an ArrayList that I need to return as a String. Right now I am using this approach:
List customers = new ArrayList<>(); L
You can try this.
String listAsStr = myList.toString(); // get list as string listAsStr = listAsStr.substring(1,listAsStr.length()-1); // removing first and last bracket
This will return the string without first and last brackets.