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