BUT1
CONTROLE
DEV1.1
DEV1.2
DEV1.3
DEV2.2
TP1-Introduction
EXO 1
EXO 2
EXO 3
EXO 4
exo4.class
exo4.java
EXO 5
TP2-ComposantsGraphique
TP3-MiseEnPage
.DS_Store
.DS_Store
.gitignore
README.md
24 lines
524 B
Java
24 lines
524 B
Java
![]() |
import java.util.Arrays;
|
||
|
|
||
|
/**
|
||
|
* DOC
|
||
|
*/
|
||
|
|
||
|
public class exo4 {
|
||
|
/**
|
||
|
* DOC
|
||
|
*/
|
||
|
public static void main(String[] args){
|
||
|
int[] tableauDeInt = new int[args.length];
|
||
|
int index = 0;
|
||
|
for(String valeur : args){
|
||
|
int nombreTemporaire = Integer.parseInt(valeur);
|
||
|
tableauDeInt[index] = nombreTemporaire;
|
||
|
index++;
|
||
|
}
|
||
|
Arrays.sort(tableauDeInt);
|
||
|
for(int j = 0; j<index;j++){
|
||
|
System.out.println(tableauDeInt[j]);
|
||
|
}
|
||
|
}
|
||
|
}
|