tp recursivite
This commit is contained in:
17
DEV3.2/TP02/02_Tableaux/Main.java
Normal file
17
DEV3.2/TP02/02_Tableaux/Main.java
Normal file
@@ -0,0 +1,17 @@
|
||||
import java.util.Arrays;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
Tableaux t = new Tableaux(args.length);
|
||||
|
||||
int[] entiers = t.convertitTab(args, args.length);
|
||||
|
||||
t.afficheTab(entiers, 0);
|
||||
|
||||
System.out.println("Nombre d'entiers pairs : " + t.entiersPairs(0));
|
||||
System.out.println("Valeur maximale : " + t.maximum(0, 0));
|
||||
|
||||
t.afficheTabInverse(entiers, entiers.length-1);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user