public class Nota { public static void main(String [] args) throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader (System.in)); int num; System.out.println("Escribe tu nota: "); num= Integer.valueOf(in.readLine().trim()).intValue(); switch(num) { case 1: case 2: case 3: case 4: System.out.println("Suspenso"); break; case 5: System.out.println("Suficiente"); break; case 6: System.out.println("Bien"); break; case 7: case 8: System.out.println("Notable"); break; case 9: System.out.println("Sobresaliente"); break; case 10: System.out.println("Matricula de honor"); break; default: System.out.println("Desconocido"); break; } } }