X Tutup
Skip to content

Commit ae5536b

Browse files
authored
Fix array initialization
1 parent 1605716 commit ae5536b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Maths/AbsoluteMax.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
*/
1111
public class AbsoluteMax {
1212
public static void main(String[] args) {
13-
int[] testnums = new int[]{-2, 0, 16};
13+
int[] testnums = {-2, 0, 16};
1414
assert absMax(testnums) == 16;
1515

16-
int[] numbers = new int[]{3, -10, -2};
16+
int[] numbers = {3, -10, -2};
1717
System.out.println("absMax(" + Arrays.toString(numbers) + ") = " + absMax(numbers));
1818
}
1919

0 commit comments

Comments
 (0)
X Tutup