This commit is contained in:
Mykola Fesenko
2025-07-29 09:05:07 +02:00
parent ce8e5eb3fe
commit 721931ac60
68 changed files with 608 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
public class VerzweigungSwitch {
public static void main(String args[]){
int zahl = 4;
switch (zahl) {
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;
case 5:
System.out.println("Mangelhaft");
break;
case 6:
System.out.println("Ungenügend");
break;
default:
System.out.println("Du hast keine gültige Note eingegeben!");
} // end of switch
}
}