how to split data one by one from string 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(" ");