Answers for "how to make a string into an array"

27

java string to char array

String str = "example";
char[] ch = str.toCharArray();
Posted by: Guest on March-05-2020
0

how to convert a string sentence into an array

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

how to saperate string to array

Scanner in=new Scanner(System.in);
		String input=in.nextLine();
		String[] word=input.split(" ");
Posted by: Guest on May-30-2020

Code answers related to "how to make a string into an array"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language