math minimum java

Java
Math.min(a, b);

// a & b = int, double, long, or float
Source

Also in Java: