14 lines
278 B
Java
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+ " ");
|
|
}
|
|
|
|
}
|
|
} |