We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1605716 commit ae5536bCopy full SHA for ae5536b
Maths/AbsoluteMax.java
@@ -10,10 +10,10 @@
10
*/
11
public class AbsoluteMax {
12
public static void main(String[] args) {
13
- int[] testnums = new int[]{-2, 0, 16};
+ int[] testnums = {-2, 0, 16};
14
assert absMax(testnums) == 16;
15
16
- int[] numbers = new int[]{3, -10, -2};
+ int[] numbers = {3, -10, -2};
17
System.out.println("absMax(" + Arrays.toString(numbers) + ") = " + absMax(numbers));
18
}
19
0 commit comments