Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objectives: After finishing the lab5 part 2, you can: -Understand how to access the nodes in the singly -linked list structure when applying 4 operations:

Objectives:

After finishing the lab5 part 2, you can:

-Understand how to access the nodes in the singly

-linked list structure when applying 4 operations: insert, delete, fetch and update

-Apply Iterator to Linked list to traverse the structures.

-Learn how to use the Java LinkedList

Requirement Statement: Create the project SP2017_LAB5 then write the application named SP2017_LinkedListDemo_yourLastName that allows users to select one of the following tasks of Linked list to manage the list of Cars or Motocycles

1. Singly Linked List

2. Singly Linked List with Iterator

3. Java Linked List with Iterator <<<<<<<<< This is the one below i need help with

After finishing with one type of Linked List, allow users to select another type until users want to exit

For the Java LinkedList with iterator

-INSERT: Allow users to insert cars or motocycles at least 4 vehicles or until users want to stop.For each car or motocycle, ask users to enter information that needs to create an object then insert it to the Java Linked List Display all the nodes in the Java Linked List

FETCH -Fetch and display 2 first cars or motocycles on the list

UPDATE -Fetch the node at location 2 -Change its color -Update the node with new color to the Java Linked List Display all the nodes in the Java Linked List

DELETE -move forward the iterator one location then delete the car or motocycle at the current iterator position - Display all the nodes in the Java Linked List

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

Find y'. y= |x + X (x) (x) X 1 02x+ 2x 1 O 2x + 1/3 Ex 2x +

Answered: 1 week ago