how to seprate string to a substring 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(" ");