/** * Überschrift: * Beschreibung: * Copyright: Copyright (c) 2007 * Organisation: * @author * @version 1.0 */ public class noten { public static void main(String[] args) { int note = 2; 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("mangelhaft"); break; case 5: System.out.println("ausreichend"); break; case 6: System.out.println("ungenügend"); break; default: System.out.println("in wat für nem land lebst du eigentlich?!"); break; } if (note == 1) { System.out.println("note 1: sehr gut"); } if (note == 2) { System.out.println("note 2: gut"); } if (note == 3) { System.out.println("note 3: befriedigend"); } if (note == 4) { System.out.println("note 4: ausreichend"); } if (note == 5) { System.out.println("note 5: mangelhaft"); } if (note == 6) { System.out.println("note 6: ungenügend"); } } }