// import java.io.*; public class Menu { public static void main ( String [] arg ) // throws java.io.IOException { char c = arg[0].charAt(0); // char c; // int n; System.out.println ( "Choix des options : " ); System.out.println ( "e: Editer une classe java" ); System.out.println ( "c: Compiler une classe java" ); System.out.println ( "x: Exécuter une classe java" ); System.out.println ( "q: Quitter le programme" ); System.out.print ( "\n Votre choix: "); // while( (c =(char) System.in.read()) != 'q' ) // { switch ( c ) { case 'e' : editer (); break; case 'c' : compiler (); break; case 'x' : executer (); break; default: break; } // n = System.in.available(); // System.in.skip(n); // System.out.print ( "\n Votre choix: "); // } } public static void editer() { System.out.println ( "\n Edition " ); } public static void compiler() { System.out.println ( "\n Compilation " ); } public static void executer() { System.out.println ( "\n Execution " ); } }