DEV/DEV2.1/TP1/Tri.java
2023-02-10 11:52:05 +01:00

23 lines
355 B
Java

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