APL/APL2.1/TP01/Tri/Tri.java
2022-02-07 17:26:04 +01:00

13 lines
342 B
Java

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