j'ai mis juste la partie concerné et de manière à ce qu'elle compile:
import java.io.IOException;
import java.util.Scanner;
class TestLissage
{
public static int n;
public static double y0, x0, Yn, Xn, h;
public static int choix;
public static void main(String[] args)
{
while (choix != 6 && choix != 5 && choix != 4 && choix != 3 && choix != 2 && choix != 1 && choix != 7)
{
System.out.println("veuillez choisir l'application à résoudre:");
System.out.println("");
System.out.println("1: y'(x) = x + y(x) solution: y(x) = exp(x)-x-1 avec y(0) = 0");
System.out.println("2: y'(x) = -2xy(x) solution: y(x) = exp(-x²) avec y(0) = 1");
System.out.println("3: y'(x) = -xy²(x) solution: y(x) = 2/(1+x²) avec y(0) = 2");
System.out.println("4: y'(x) = y(x) solution: y(x) = exp(x) avec y(0) = 1");
System.out.println("5: y'(x) = ");
System.out.println("6: y'(x) = ");
System.out.println("7: quitter");
try
{
Scanner s = new Scanner(System.in);
System.out.println("entrez votre choix");
choix = s.nextInt();
}
catch(Exception e){}
}
if (choix == 1|| choix == 2 || choix == 3 || choix == 4 || choix == 5 || choix == 6)
{
try
{
Scanner s = new Scanner(System.in);
System.out.println("entrez le nombre d'itération");
n = s.nextInt();
}
catch(Exception e){}
try
{
Scanner s = new Scanner(System.in);
System.out.println("entrez le pas d'itération");
h = s.nextDouble();
}
catch(Exception e){}
System.out.println(choix);
System.out.println(n);
System.out.println(h);
}
}