Description: i) Write the Counter class which should have two private instance variables: count and max.Add getters and setters for the two private instance variables. The getter methods should be named getCount() and getMax(), whereas the setter methods should be named setCount(int n) and setMax(int n).Add a toString() method in the Counter class and test this method in the CounterTest
class. This could simply display the current values of count and max.
To Search:
File list (Check if you may need any files):
Counter.java