Ejemplo: cambiar mayúsculas y minúsculas menos que java
switch (lessThan)
{
//Less than cannot techinically be added so we use the numbers less than those numeberss
case 1:
case 2:
case 3:
System.out.println("This name has 3 or less characters");
break;
case 4:
System.out.println("This name has 4 characters");
break;
}
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)