Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. llist.head = new Node(1);
  2. Node second = new Node(2);
  3. Node third = new Node(3);
  4.  
  5. list.add("Steve");
  6. list.add("Carl");
  7. list.add("Raj");
  8. list.add("Negan");
  9. list.add("Rick");
  10.  
  11. for(int i = 0; i < listSize; i++)
  12. {
  13. System.out.print("Enter a number to go in the list: ");
  14. int num = scan.nextInt();
  15. list.add(num);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement