What Chris said indeed and my second code block is relevant to just that, Java wont accept numbers into boolean.
And also the switch statement will not take a long, it can take any number that is...
Type: Posts; User: Json
What Chris said indeed and my second code block is relevant to just that, Java wont accept numbers into boolean.
And also the switch statement will not take a long, it can take any number that is...
Hello!
First off, in Java you're not allowed to use booleans in switches. I guess this is because there is no point really, either its true or its false.
So what you want to do is a simple if...