Java String Tokenize tokenize(String line)

Here you can find the source of tokenize(String line)

Description

tokenize

License

Apache License

Declaration

public static final Set<String> tokenize(String line) 

Method Source Code


//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*/
}

Related

  1. tokenize(String input)
  2. tokenize(String input)
  3. tokenize(String input)
  4. tokenize(String input, char by)
  5. tokenize(String input, String delim)
  6. tokenize(String s)
  7. tokenize(String s)
  8. tokenize(String s)
  9. tokenize(String s)