how to return the lower of two values in one line java

Java
Math.min(a, b);
Source

Also in Java: