You are on page 1of 1

Lab 2

Given the following ADT.

a) Complete the object class Diver.


b) Apply the LinkedList class from the java.util package and the Diver
class defined, write an application to do the following:
i. Declare and create the LinkedList object named listDiver.
ii. Get FIVE (5) data on divers from the user and insert into listDiver.
iii. Display the name and information of all drivers from China.
iv. Display the complete information of a diver whose name is given by the
user.
v. Display the name of divers from a country given by the user.
vi. Display the information of the diver with the highest total point
obtained.

You might also like