Fügen Sie Wörter von String zu Sammlung Java hinzu
List<String> al = new ArrayList<>(Arrays.asList(words.split(" ")));
Inna Kim
List<String> al = new ArrayList<>(Arrays.asList(words.split(" ")));
ArrayList<String> wordArrayList = new ArrayList<String>();
for(String word : "Hello I like Sports".split(" ")) {
wordArrayList.add(word);
}