$24
Lab Description
Objective 1
Create a class named Node. This should be a linked list style class that has a pointer to the next node in the list and an integer val. Make the fields private, and use public getter and setter methods.
Objective 2
Write a class method that computes the average of the linked list.
Objective 3
Write a class method that finds the minimum of the linked list.
Objective 4
Write a class method that reverses the linked list and returns the new head. Example:
Input: 3 - 7 - 12
Returns: 12 - 7 - 3
What do you have to turn in?
2 Java files, MyJavaLab08.java, and Node.java inside a zip folder named LastNameFirstName-lab07.zip
Criteria for grading:
● [10 pts] Your lab is submitted according to specifications (proper name of file, proper format)
● [10 pts] Well commented code explaining what you are doing (clear and grammatically correct)
● [25 pts] Objective 1
● [15 pts] Objective 2
● [15 pts] Objective 3
● [25 pts] Objective 4