APL/APL2.1/TP01/Tri/Tri.java

13 lines
342 B
Java
Raw Normal View History

2022-02-07 17:26:04 +01:00
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));
}
}