APL/APL2.1/TP1/Tri.java
2022-02-07 10:53:37 +01:00

15 lines
423 B
Java

import java.util.Arrays;
public class Tri {
public static void main(String[] args) {
int[] total = null;
total = new int[args.length];
for(int i = 0; i < args.length; i++) {
total[i] = Integer.parseInt(args[i]);
}
Arrays.sort(total);
for(int i = 0; i < args.length; i++) {
System.out.println(total[i]);
}
}
}