Answers for "java sentence to string array"

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 "java sentence to string array"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language