CS49J

Remember not to create packages. Use the default package

A

Write a class RectangleSorter. It has two static methods:

You can provide a class that implements the Comparator interface or experiment with Lambda expression (pages 666 and 667)

Codecheck URL

B

Write a class LinkedListUtil that contains 2 static methods

Codecheck URL

C

Write a class Roster that manages a LinkedList of Student objects. The Student objects are arranged alphabetically by name. You are given a Student class. Do not modify it.

The constructor for a Roster has no parameters but initializes an empty LinkedList of Students. The list is the instance variable.

Provide these methods:

Codecheck URL