Code example for Splitter

Methods: split

    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. 
Connect your IDE to all the code out there  Get Codota for Java