Write the definition of a method min that has two int parameters and returns the smaller.
LANGUAGE: JAVA
CHALLENGE:
Write the definition of a method min that has two int parameters and returns the smaller.
SOLUTION:
public int min (int aint, int bint){ return Math.min(aint, bint); }
Posted in Java, Learn To Code