0

When you are using the switch loop and you are stating your case, can you do something like this. Case1 >40 || <50

I am trying to use the switch method to do something

9th Jun 2017, 3:05 PM
Adewusi Boluwatife
Adewusi Boluwatife - avatar
3 Respuestas
+ 4
pls ask the question clearly
9th Jun 2017, 3:13 PM
Nanda Balakrishnan
+ 2
I think range expression like >40 || <50 cannot be done in switch case
9th Jun 2017, 3:25 PM
Nanda Balakrishnan
0
yes u can use as switch(true) { case (number<50); System.out.println("number less than 50"); break; ... ..
9th Jun 2017, 3:18 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar