Question: Has to be written in Java code. Thanks. For this assignment, you're going to create a program that will manage a linked list of travel


Has to be written in Java code. Thanks.
For this assignment, you're going to create a program that will manage a linked list of travel attractions. There's a twist, however - each node in the linked list will actually have TWO next pointers, so that you can have two 'lists' stored in the same place. There's going to be 1 list for the attractions, sorted according to name, and there's going to be a second list, sorted according to location (city/country). A picture of how this might look is given below: Pointer to First Attraction by Location Pointer to First Attraction by Name Name: Empire State Buildin Next by Name: Eiffel Tower Next by ame City: Paris Next by Name: Golden Gate Bridge Next by City: New York City: San Francisco Next by Next by Location Country: France Country: USA Country: USA Distance Distance Distance: Notice how each Attraction has a 'next by name' AND a 'next by location' reference
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
