static int max(int[] args)
// 入力値条件略
int a = Integer.MIN_VALUE;
for (int b : args) {
a = Math.max(a, b);
}
return a;
}

んー。確かに微妙ではあるけどなぁ