Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 : Java implementation of a Linked List For this part, you will be provided a set of skeleton classes for you to implement

Part 1: Java implementation of a Linked List
For this part, you will be provided a set of skeleton classes for you to implement a singly linked list of
type int. You will also be provided a minimal set of test cases. You are encouraged to augment the test
suite.
Import the eclipse project Assignment1.zip into your workspace. The package includes a complete Node
class as well as a test suite MyLinkedListTest. A skeleton MyLinkedList class is provided with the
following methods that need to be implemented:
Points Method
1 public MyLinkedList() constructor
2 public void add(int data)
3 public void add(int[] data)
3 public void add(MyLinkedList l2)
2 public int get(int index)
2 public void remove(int data)
2 public boolean contains(int needle)
2 public static boolean equals(MyLinkedList l1, MyLinkedList l2)
2 public boolean equals(MyLinkedList l2)
2 public boolean equals(Object o2)
1 public boolean isEmpty()
5 public int findMinIterative()
10 public int findMinRecursive()
1 public int size()
2 public String toString()
40 Total
Note that each of the above method are thoroughly commented in the included assignment1 package
and that additional methods may be required. Additionally, you may assume that methods are provided
valid input.
To submit this part of the assignment, you are required to export your project as an Archive ZIP file and
compress it using the ZIP format for upload in MyCourses. See instructions posted on MyCourses for
importing and exporting Eclipse Projects.

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

More Books

Students also viewed these Databases questions

Question

The Study of Communication?

Answered: 1 week ago