can switch statements in java work with boolean
The expression in the switch statement must be of type char, byte, short, or int. It cannot be boolean, float, double, or String.
can switch statements in java work with boolean
The expression in the switch statement must be of type char, byte, short, or int. It cannot be boolean, float, double, or String.
switch statement in java
// syntax of switch statement in java
switch(expression)
{
case 1 value :
// code goes here
break;
case 2 value :
// code goes here
break;
case 3 value :
// code goes here
break;
.
.
.
.
default: // optional
// default code goes here
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us