Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- llist.head = new Node(1);
- Node second = new Node(2);
- Node third = new Node(3);
- list.add("Steve");
- list.add("Carl");
- list.add("Raj");
- list.add("Negan");
- list.add("Rick");
- for(int i = 0; i < listSize; i++)
- {
- System.out.print("Enter a number to go in the list: ");
- int num = scan.nextInt();
- list.add(num);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement