first commit
This commit is contained in:
17
Switches.java
Normal file
17
Switches.java
Normal file
@@ -0,0 +1,17 @@
|
||||
import javax.swing.JOptionPane;
|
||||
class Scratch {
|
||||
public static void main(String[] args) {
|
||||
String idots= JOptionPane.showInputDialog("What is your name?");
|
||||
|
||||
switch (idots) {
|
||||
case "Ggsya" -> System.out.println("Lord Ggsleeb");
|
||||
case "KhaledHn1" -> System.out.println("Lord Gigalara");
|
||||
case "Roosya" -> System.out.println("Lord Galanbees");
|
||||
default -> System.out.println("noob not found");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user