Java Scanner Usage parseDailyData(final List lines, final List priceValues, final List dailyPriceDate)

Here you can find the source of parseDailyData(final List lines, final List priceValues, final List dailyPriceDate)

Description

parse Daily Data

License

Open Source License

Declaration

public static void parseDailyData(final List<String> lines, final List<String> priceValues,
            final List<String> dailyPriceDate) 

Method Source Code


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

Related

  1. nextInt(final Scanner sc)
  2. numberOfLines(String text)
  3. OperasiMasukan()
  4. parameterInput(int start, int end)
  5. parse_str_vector(String str_vector)
  6. parseExperimentName(String name)
  7. parseQueryString(String queryString)
  8. parseTime(String input)
  9. pathTokenList(String path)