// finding the bigger of two ints
int bigger = Math.max( a, b );

// also works with long, float and double e.g.
double biggerDouble = Math.max( aDouble, bDouble );