Advertisement
jdalbey

Alternate linked list problem

May 26th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Alternate Linked List Problem - S15.3
  2.  
  3. Download the data file at
  4. http://sprunge.us/gaPQ
  5.  
  6. It contains a ranked list of the most popular baby names in 1990.
  7. The first column is the ranking, the second column is a male name,
  8. the third column is a female name.
  9.  
  10. Read the data file and create two linked lists (using java.util.LinkedList),
  11. one containing the ranked male names,
  12. and one containing the ranked female names.
  13.  
  14. Then create a third list that contains names that are found in BOTH lists.
  15. That is, create a list of names that the first two lists have in common.
  16.  
  17. Then print the resulting list.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement