DEV_BUT1/DEV2.1/TP01/tri.java
2023-02-08 11:18:16 +01:00

14 lines
278 B
Java

import java.util.Arrays;
public class tri{
public static void main(String[] args) {
int[] tab = new int[args.length];
for(int i=0; i<args.length ; i++){
tab[i] = Integer.parseInt(args[i]);
}
Arrays.sort(tab);
for(int i: tab){
System.out.print(i+ " ");
}
}
}