1. Overview
In this
ArrayList articles series, You'll be learning today
how to convert a String into an ArrayList using java built-in methods. There are many scenarios in the real-time applications where we need to do transform the string into a list of objects. Typically string should be multiple values separated by a delimiter. For example take a
String like
"Started,Approved,In Progress,Completed". Here we are seeing the statues in string format and all these statuses are for processing the tickets raised by the users. This is the status flow. We need to now convert this string into a
List<String>.
Note: String can have integers, double and strings values with a delimiter. The same below shown program works for any type of values present in the input string.