📅  最后修改于: 2022-03-11 14:52:26.098000             🧑  作者: Mango
//store input string in an array with an length unknown
Scanner scanner = new Scanner(System.in);
String[] string = scanner.nextLine().split(" ");