import java.lang.Math; public class BiggerNum{ /** * @param a integer of param1 * @param b integer of param2 * @return the bigger integer of a and b * If a equals b, return either one */ public static int compare(int a, int b) { return Math.max(a,b); } }
- import java.lang.Math;
- public class BiggerNum{
- /**
- * @param a integer of param1
- * @param b integer of param2
- * @return the bigger integer of a and b
- * If a equals b, return either one
- */
- public static int compare(int a, int b) {
- return Math.max(a,b);
- }
- }