Here you can find the source of parseDailyData(final List
public static void parseDailyData(final List<String> lines, final List<String> priceValues, final List<String> dailyPriceDate)
//package com.java2s; //License from project: Open Source License import java.util.List; import java.util.Scanner; public class Main { public static void parseDailyData(final List<String> lines, final List<String> priceValues, final List<String> dailyPriceDate) { for (final String line : lines) { final Scanner lineScan = new Scanner(line); lineScan.useDelimiter(",|\t"); dailyPriceDate.add(lineScan.next()); priceValues.add(lineScan.next()); lineScan.close();/*from w w w. ja v a 2 s . c om*/ } } }