boolean encore = true; while(encore) { /* Menu Principal */ System.out.println("==============================================="); System.out.println(" MENU PRINCIPAL"); System.out.println("==============================================="); System.out.println(" "); System.out.println(" Veuillez vous connecter suivant votre statut :"); System.out.println(" 1- Administrateur"); System.out.println(" 2- Receptionniste"); System.out.println(" 3- Repartiteur"); System.out.println(" 4- Chauffeur"); System.out.println(" "); System.out.println(" 5- Quitter"); System.out.println(" "); System.out.print("Entrer votre choix: "); /* lecture du choix */ int rep=0; try { rep = Lire.lireInt(); } catch (Exception e) { e.printStackTrace(); } /* traitement du choix */ switch(rep) { case 1: System.out.println("Choix 1"); break; case 2: break; case 3: break; case 4: break; case 5: encore = false; break; default: System.out.println("Choix non valide"); } }