Question: Create a main class with a go method, as described previously. Create a LinkedList of Strings with at least 3 Strings in it. Using an

Create a main class with a go method, as described previously.

Create a LinkedList of Strings with at least 3 Strings in it. Using an enhanced For loop, print the strings in the list.

Create a HashMap of String and Integer with at least three key-value pairs in it. Using an enhanced For loop, print the entries in the map.

Create a TreeSet of Strings. Add at least 3 Strings to it, one repeated. Using an enhanced For loop, print the strings in the set.

Create a Queue of Integers. Add at least 3 numbers to it. Using a while loop, print the numbers in the queue.

Create a Stack of Doubles. Add at least 3 numbers to it. Using a while loop, print the numbers in the stack.

Create a Deque of Strings. Add at least 3 Strings to it, some in front, some in the back. Using a while loop, print the strings in the deque.

Create a class named Student with attributes long studentId, String name, double avgGrade and implements the Comparable interface on the grade, then name attributes. Load at least 5 students, some with the same grade. Sort and print the students in reverse order

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!