public int intMax(int a, int b, int c) { int MAX = a; if ( b > MAX) MAX = b; if ( c >MAX) MAX = c; return MAX; }
public int intMax(int a, int b, int c) {return Math.max(Math.max(a,b),c);}
If you like our content, feel free to follow me to stay updated.
Enter your email address:
We hate spam as much as you do.
Upload
public int intMax(int a, int b, int c) {
ReplyDeletereturn Math.max(Math.max(a,b),c);
}