Answers for "how to make a string to array"

27

java string to char array

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

js string to array

var myString = 'no,u';
var MyArray = myString.split(',');//splits the text up in chunks
Posted by: Guest on April-08-2020
4

js string to array

str = 'How are you doing today?';
console.log(str.split(' '));

>> (5) ["How", "are", "you", "doing", "today?"]
Posted by: Guest on October-22-2020

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

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language