I want code that accepts more than 2 integers and prints out the biggest one. I used Math.MAX
but the problem is that it accepts only 2 integers by default, and you can't print all the ints in it. So I had to make it like this:
int max = Math.max(a, Math.max(b, Math.max(c, Math.max(d, e))));
Is there a better method to do this?