Code example for Splitter

Methods: split

0
	private static final String SEPARATOR = "\t ";
	private static final Splitter onTabs = Splitter.on(SEPARATOR);
	private List<String> data;
 
	Line(String line) {
		data = Lists.newArrayList(onTabs.split(line));
	} 
 
	public double getDouble(int field) {
		return Double.parseDouble(data.get(field));
	} 
} 
Experience pair programming with AI  Get Codota for Java