public class Switch {
public static void main(String[] args) {
char penaltyKick = 'L';
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");
}
}
}
jajajajEl mensaje está oculto porque el usuario está en tu lista de ignorados.
de náEl mensaje está oculto porque el usuario está en tu lista de ignorados.