Fix array initialization
This commit is contained in:
parent
ae5536bddc
commit
9a31b960ff
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user