how to convert string to Object list in java 8 code example
Example: convert string to list java 8
String txt="Hello World I am a text";
List<String> seperated=Arrays.asList(txt.split(" "));
System.out.println(seperated);//[Hello, World, I, am, a, text]