diff --git a/subjects/java/checkpoints/reverse-array/ExerciseRunner.java b/subjects/java/checkpoints/reverse-array/ExerciseRunner.java index 0e7e4810f..32aac0a49 100644 --- a/subjects/java/checkpoints/reverse-array/ExerciseRunner.java +++ b/subjects/java/checkpoints/reverse-array/ExerciseRunner.java @@ -1,3 +1,6 @@ +import java.io.*; +import java.util.Arrays; + public class ExerciseRunner { public static void main(String[] args) throws IOException { System.out.println(Arrays.toString(ReverseArray.reverse(new Integer[]{4, 2, 1, 3}))); diff --git a/subjects/java/checkpoints/rotate-array/ExerciseRunner.java b/subjects/java/checkpoints/rotate-array/ExerciseRunner.java index 0c32a9b2c..93c440bc6 100644 --- a/subjects/java/checkpoints/rotate-array/ExerciseRunner.java +++ b/subjects/java/checkpoints/rotate-array/ExerciseRunner.java @@ -1,5 +1,2 @@ -public class ExerciseRunner { - public static void main(String[] args) throws IOException { - System.out.println(Arrays.toString(RotateArray.rotate(new Integer[]{4, 2, 1, 3}, 1))); - } -} +import java.io.*; +import java.util.Arrays; \ No newline at end of file diff --git a/subjects/java/checkpoints/sort-array/ExerciseRunner.java b/subjects/java/checkpoints/sort-array/ExerciseRunner.java index e88eaf16d..39bc4a70b 100644 --- a/subjects/java/checkpoints/sort-array/ExerciseRunner.java +++ b/subjects/java/checkpoints/sort-array/ExerciseRunner.java @@ -1,3 +1,6 @@ +import java.io.*; +import java.util.Arrays; + public class ExerciseRunner { public static void main(String[] args) throws IOException { System.out.println(Arrays.toString(SortArray.sort(new Integer[]{4, 2, 1, 3})));