split a string with delimiter code example
Example: how to saperate string to array
Scanner in=new Scanner(System.in);
String input=in.nextLine();
String[] word=input.split(" ");
Scanner in=new Scanner(System.in);
String input=in.nextLine();
String[] word=input.split(" ");