Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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]
 
PREVIOUS NEXT
Tagged: #convert #string #list #java
ADD COMMENT
Topic
Name
3+2 =