How to code this question please?

Implement a class Average which consists of the main method and average method. Inside the main method, call average method. Print the value return by the average method.

Next, overload the average method such that if three integers are provided as parameters, the method returns the average of all three. Modify main method by adding a statement to invoke the overload method.
Then, create another overload average method to accept four integer parameters and return their average. Modify main method by adding a statement to invoke the latest overload method.