Skip to content

christian0101/JavaAdvancedMinMax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdvancedMinMax

Advanced min/max methods for java. Find min/max for n elements in Java.

Improved Math.min and Math.max from the standard Java library. This class implements advanced min/max methods that allow an arbitrary number of arguments*.

*Numbers.

Usage example

MinMax.min(1, 2, -5, ..., n);
MinMax.min(1.2, 2.3, -5.0, ..., n.n);
MinMax.max(1, 2, -5, ..., n);
MinMax.max(1.2, 2.3, -5.0, ..., n.n);

Documentation

JavaDoc