Text: This is a Java program.
1. Create a class called Hogwarts that has the following private variables:
- Name of a person: String
- House sorted into: String
- Grade: int
Write necessary constructors, accessors, mutators, and toString methods.
2. Create a compareTo method that compares any two objects. The compareTo method compares the two objects by Grade. If they are equal, then compare by house. If the house is also equal, then compare by name.
3. Create a client class. Within the client class, create an ArrayList with 10 objects of Westeros. Sort them by age and display the sorted ArrayList.