update: add input via cli
This commit is contained in:
parent
dd7ad5f13a
commit
103312d261
@ -31,7 +31,7 @@ public class Sort {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
int[] input = new int[]{9,3,1,5};
|
||||
int[] input = Arrays.stream(args).mapToInt(Integer::parseInt).toArray();
|
||||
System.out.println("Input: " + Arrays.toString(input));
|
||||
System.out.println("Output: " + Arrays.toString(selectionSort1(input)));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user