You and your partner are going to fill in these methods working with Lists - the main
Fantastic news! We've Found the answer you've been seeking!
Question:
Enter a filename: test1.txt Enter another: test2.txt Wordlist 1 ---------- 0: the 1: quick 2: brown 3: fox 4: jumps Wordlist 2 ---------- 0: over 1: the 2: lazy 3: dog List 1 merged with List 2 ------------------------------------ 0: the 1: over 2: quick 3: the 4: brown 5: lazy 6: fox 7: dog 8: jumps List 2 merged with List 1 ------------------------------------ 0: over 1: the 2: the 3: quick 4: lazy 5: brown 6: dog 7: fox 8: jumps
Note that the mergeLists method is a bit tricky and involves more than one loop. Before you begin coding, think about the algorithm for building the new list. Write it up in the comments of your method and then fill in the code around your algorithm (as demonstrated in class).
Related Book For
Intermediate Accounting
ISBN: 978-0324592375
17th Edition
Authors: James D. Stice, Earl K. Stice, Fred Skousen
Posted Date: