Code example for Splitter

Methods: split

0
    public static final Random RAND = RandomUtils.getRandom();
 
    private final List<String> data;
 
    private Line(CharSequence line) {
      data = Lists.newArrayList(ON_TABS.split(line));
    } 
 
    private Line() { 
      data = Lists.newArrayList();
    } 
 
    public double getDouble(int field) {
      return Double.parseDouble(data.get(field));
    } 
 
    /** 
     * Generate a random line with 20 fields each with integer values. 
     * 
     * @return A new line with data. 
Contextual code suggestions in your IDE  Get Codota for Java