Fix array initialization

This commit is contained in:
Ray S 2020-08-16 11:21:16 -04:00 committed by GitHub
parent ae5536bddc
commit 9a31b960ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,10 +10,10 @@ import java.util.Arrays;
*/
public class AbsoluteMin {
public static void main(String[] args) {
int[] testnums = new int[]{4, 0, 16};
int[] testnums = {4, 0, 16};
assert absMin(testnums) == 0;
int[] numbers = new int[]{3, -10, -2};
int[] numbers = {3, -10, -2};
System.out.println("absMin(" + Arrays.toString(numbers) + ") = " + absMin(numbers));
}