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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!