tring.split code example
Example 1: how to split a string in javascript
strName.split(); // My code
Example 2: how to saperate string to array
Scanner in=new Scanner(System.in);
String input=in.nextLine();
String[] word=input.split(" ");
strName.split(); // My code
Scanner in=new Scanner(System.in);
String input=in.nextLine();
String[] word=input.split(" ");