how to make a string to array code example
Example 1: java string to char array
String str = "example";
char[] ch = str.toCharArray();
Example 2: js string to array
str = 'How are you doing today?';
console.log(str.split(' '));
>> (5) ["How", "are", "you", "doing", "today?"]
Example 3: js string to array
var myString = 'no,u';
var MyArray = myString.split(',');//splits the text up in chunks