📅  最后修改于: 2022-03-11 14:52:33.941000             🧑  作者: Mango
String txt="Hello World I am a text";
List seperated=Arrays.asList(txt.split(" "));
System.out.println(seperated);//[Hello, World, I, am, a, text]