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 en java
switch (/*Variable*/)
{
case /*Variable*/:
/*Action*/;
break;
default:
/*Action*/;
}
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 en java
switch (/*Variable*/)
{
case /*Variable*/:
/*Action*/;
break;
default:
/*Action*/;
}
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