Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Java Switch
//Title of this code //'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_45 import java.util.*; import java.lang.*; class Rextester { public static void main(String[] args) { char penaltyKick = 'A'; switch (penaltyKick) { case 'L': System.out.println("Messi shoots to the left and scores!"); break; case 'R': System.out.println("Messi shoots to the right and misses the goal!"); break; case 'C': System.out.println("Messi shoots down the center, but the keeper blocks it!"); break; default: System.out.println("Messi is in position..."); } } }
run
|
edit
|
history
|
help
0
preincrement1
mostrar pam
rta
Sort arraylist bubble sort
hw1p1
ABC`s
Increment
Meena
상속1
1a