import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;

class Oct28 {
	public static void main(String[] args) {
		Scanner kb = new Scanner(System.in);

		int choice = 0;
		do {
			System.out.print("Enter 1 or 2 (exit): ");
			choice = kb.nextInt();

			switch(choice) {
				case 1:
					System.out.println("User entered 1");
					break;
				case 2:
					break;
				default:
					System.out.println("Invalid options");
			}
	
		} while(choice != 2);
		
		Scanner fin = null;
		try {
			File f = new File("data.csv");
			fin = new Scanner(f);
		}
		catch (FileNotFoundException e) {
			e.printStackTrace();
			System.out.println();
			return;
		}

		fin.useDelimiter(",|\n|\t");


		while(fin.hasNext()) {
			System.out.printf("%d ", fin.nextInt());
		}
		System.out.println();



	}

}
