Upload files to "Aufgaben/PTP_1"
This commit is contained in:
24
Aufgaben/PTP_1/J04A1.java
Normal file
24
Aufgaben/PTP_1/J04A1.java
Normal file
@@ -0,0 +1,24 @@
|
||||
import java.util.Scanner;
|
||||
public class J04A1 {
|
||||
public static void main(String args[]){
|
||||
char firstChar = 'N';
|
||||
|
||||
|
||||
switch (firstChar) {
|
||||
case 'j':
|
||||
System.out.println("ja");
|
||||
break;
|
||||
case 'J':
|
||||
System.out.println("Ja");
|
||||
break;
|
||||
case 'n':
|
||||
System.out.println("nein");
|
||||
break;
|
||||
case 'N':
|
||||
System.out.println("Nein");
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user