String txt="Hello World I am a text"; List<String> seperated=Arrays.asList(txt.split(" ")); System.out.println(seperated);//[Hello, World, I, am, a, text]