public class NumSort{
public static void main(String[] args) {
int[] a = new int[args.length];
for (int i=0; i<args.length; i++){
a =Integer.parseInt(args);
}
print(a);
selectionSort(a);
print(a);
}
private static void selectionSort(int[] a) {
for(int i=0; i<a.length; i++){
for (int j=i+1; j<a.length; j++) {
if (a[j] < a) {
int temp = a;
a = a[j];
a[j] = temp;
}
}