📜  字符串数组 java 代码示例

📅  最后修改于: 2022-03-11 14:52:26.098000             🧑  作者: Mango

代码示例2
//store input string in an array with an length unknown
        Scanner scanner = new Scanner(System.in);
        String[] string = scanner.nextLine().split(" ");