import java.io.*; //import esc101.lab1.*; //import esc101.lab2.*; class Input { //esc101.lab1.Complex c1; //c1 = new esc101.lab1.Complex(); public static void main(String[] args) throws IOException { // Magic lines InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); //System.out.print("Enter input here: "); // prompt //String s = br.readLine(); //System.out.println("The input string is: "+s); List l1 = new List(); for(;;) { System.out.print(" More input? (y/n) "); String s1 = br.readLine(); if(!s1.equals("y")) { break; } //read an integer System.out.print(" Enter integer input: "); String iStr = br.readLine(); int x = Integer.parseInt(iStr); //add int to list l1 = l1.addToFront(x); } //print the list System.out.print(" "); l1.print(); } // End main() } // End class Input