Tambahkan kata -kata dari string ke koleksi java
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);
}