Is there a way to get an ArrayList from a String obtained by ArrayList.toString()?

Viewed 318

I have this code:

ArrayList<String> list = new ArrayList<>();
String str = list.toString(); // Stored in a database

Is there a quick way to recover the ArrayList from the string ?

3 Answers
Related