Here you can find the source of tokenize(String line)
public static final Set<String> tokenize(String line)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static final Set<String> tokenize(String line) { Set<String> set = new LinkedHashSet<>(); Collections.addAll(set, line.split(" ")); return set; }/*from w ww. j av a 2s. c om*/ }