Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the interface List Interface.java (on Moodle) and HTLinkedList (Head & Tail Linked List) implementation given in class and do the following: 1) Add a

image text in transcribed

image text in transcribed
Use the interface "List Interface.java" (on Moodle) and "HTLinkedList" (Head & Tail Linked List) implementation given in class and do the following: 1) Add a new class that models a Student to be stored in the Node as the data field. 2) Student class should have this content: a. Data members: id, first name, last name, gender, department, credits & gpa. b. Methods: default constructor, rand, toString and list. These methods are explained as follows: default constructor: sets all data members to values of your choice but need to be justified. rand: randomly generates an instance of Student by setting all data members to random values. toString: returns a string containing all data fields in one line. if two Students have identical object equals: test content. - list: creates and objects. returns a "ArrayList" of Student 3) Add a new method to HILinkedList "print" that prints all objects contained in the list. 1) Add a new class that models a Student to be stored in the Node as the data field. 2) Student class should have this content: a. Data members: id, first name, last name, gender, department, credits & gpa. b. Methods: default constructor, rand, toString and list. These methods are explained as follows: - default constructor: sets all data members to values of your choice but need to be justified. - rand: randomly generates an instance of Student by setting all data members to random values. - toString: returns a string containing all data fields in one line. equals: test content. if two Students have identical object list: creates and returns a "ArrayList" of Student objects. 3) Add a new method to HTLinkedlist "print" that prints all objects contained in the list. Use the interface "List Interface.java" (on Moodle) and "HTLinkedList" (Head & Tail Linked List) implementation given in class and do the following: 1) Add a new class that models a Student to be stored in the Node as the data field. 2) Student class should have this content: a. Data members: id, first name, last name, gender, department, credits & gpa. b. Methods: default constructor, rand, toString and list. These methods are explained as follows: default constructor: sets all data members to values of your choice but need to be justified. rand: randomly generates an instance of Student by setting all data members to random values. toString: returns a string containing all data fields in one line. if two Students have identical object equals: test content. - list: creates and objects. returns a "ArrayList" of Student 3) Add a new method to HILinkedList "print" that prints all objects contained in the list. 1) Add a new class that models a Student to be stored in the Node as the data field. 2) Student class should have this content: a. Data members: id, first name, last name, gender, department, credits & gpa. b. Methods: default constructor, rand, toString and list. These methods are explained as follows: - default constructor: sets all data members to values of your choice but need to be justified. - rand: randomly generates an instance of Student by setting all data members to random values. - toString: returns a string containing all data fields in one line. equals: test content. if two Students have identical object list: creates and returns a "ArrayList" of Student objects. 3) Add a new method to HTLinkedlist "print" that prints all objects contained in the 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

Data Infrastructure For Medical Research In Databases

Authors: Thomas Heinis ,Anastasia Ailamaki

1st Edition

1680833480, 978-1680833485

More Books

Students also viewed these Databases questions

Question

Prepare a constructive performance appraisal.

Answered: 1 week ago

Question

List the advantages of correct report formatting.

Answered: 1 week ago