// Arup Guha
// 11/13/2026
// Basic Set Up for COP 3330 Program 9: Shows how to load in lines from a csv file
// into an ArrayList of String.

import java.util.*;
import java.io.*;

public class testp9 {

	public static void main(String[] args) throws Exception {
	
		// Open file to read from.
		Scanner fin = new Scanner(new File("Jaz-ShowList.csv"));
		
		// Read in each line into lines.
		ArrayList<String> lines = new ArrayList<String>();
		while (fin.hasNext()) {
			lines.add(fin.nextLine());
		}
		
		// Shows what was read in.
		System.out.println(lines.size());
		for (String line: lines)
			System.out.println(line);
		
		// Close the input file.
		fin.close();
	}
}