It has a method called max() whichwill return the largest value that has been added to MaxFinder. Italso has the following methods:
addValue – adds a value of the typethat MaxFinder has been parameterized with
addValues – adds an ArrayList ofvalues that MaxFinder has been parameterized with
max() – returns the maximum valuedobject that has been added. And null if nothing has been added
1 package maxfinder; 2 3 public class MaxFinder { 5} 6
It has a method called max() which will return the largest value that has been added to MaxFinder. It also has the follo
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am