GC Recursive List Traversal Project
Description
Instructions
Use the starter code below to create a Java app that:
- reads words from a text file,
- creates a ItemNode instance for each word (use type String),
- adds each NodeItem instance to a SinglyLinkedList class instance, then
- traverses this list recursively to display the words in the reverse original (FIFO) order they were added in. For instance, if you added the Strings “one”, “two”, “three” in that order, code the SinglyLinkedList print() method to display “one two three”. You can do this by recursively traversing the list, then displaying each item as you return from each activation record. This is easier to code than it is to explain. If you have questions, message me from Canvas.
For instance, data “one two” should be displayed as “two one”.
Submit a .zip file that contains all .java files needed to run your app. You don’t need to include the data file.
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."