import java.util.Scanner; public class Noten { public static void main(String[] args) { // Problemstellung: Zahlenwerte sollen umgewandelt werden in Texte Scanner sc = new Scanner(System.in); // for(;;){ // Endlosschleife System.out.print("Bitte Note als Zahl ohne Komma eingeben: "); int note = sc.nextInt(); switch(note){ case 1: System.out.println("Sehr gut"); break; case 2: System.out.println("Gut"); break; case 3: System.out.println("Befriedigend"); break; case 4: System.out.println("Ausreichend"); break; default: System.out.println("Leider durchgefallen :-("); } // switch // } // for } }