Ajout des TP

This commit is contained in:
stiti
2024-02-01 13:55:03 +01:00
parent 4fe273c309
commit 113583b37a
228 changed files with 7094 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,24 @@
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]);
}
}
}