BUT2/DEV/DEV3.2/TP02_Recursivite/Q2Main.java

14 lines
452 B
Java

public class Q2Main{
public static void main(String[] args) {
try{
Q2Modele calcul = new Q2Modele(args);
calcul.printInt(0);
System.out.println("nombre de paire = " + calcul.getPaire());
System.out.println("plus grand = " + calcul.getMax());
calcul.printInv(0);
}
catch(NumberFormatException e){
System.out.println("erreur argument");
}
}
}