Answers for "convert string to array of words java"

1

string to string array java

String[] ary = "abc".split("");

//(java.lang.String[]) [, a, b, c]
Posted by: Guest on September-12-2021
0

how to convert a sentence into string array in java

String str = "This is a simple sentence";
String[] strgs = str.split(" ");
Posted by: Guest on August-24-2020

Code answers related to "convert string to array of words java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language