Question: Method get ( int i ) : it return the element at position i if there is an element; otherwise, it return null. 9 .
Method getint i: it return the element at position i if there is an element; otherwise, it return null.
Method display: Void method that prints the elements currently in the list. A
Method containsE e: it returns true if the element in the list, otherwise it returns false.
Method indexOfE e: it returns the index of the element e in the list, otherwise it returns
Create Test class with main method, and create two objects of MyList, each one initially
contains elements: one of type Integer and the other one of type Character.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
