// // Test List3 // import java.util.Scanner; public class TestList3 { public static void main(String[] args) { Scanner input = new Scanner(System.in); List3 myList = new List3(); String n, dummy; int t1, t2; while(input.hasNext()) { n = input.nextLine(); t1 = input.nextInt(); t2 = input.nextInt(); dummy = input.nextLine(); // drop "\n" myList.insert(n, t1, t2); } myList.print(); } }