Binary value in Switch case

Q

Is it possible to pass a binary value to 'case' of 'switch' statement?The control value which we are using to test is also binary. switch(binary value) { case 0000: System.out.println(" "); break; case 0001: System.out.println(" "); break; }

✍: Guest

A
(This question has not been answered yet. If you know the answer, please share it in a comment below.)

2014-02-20, 2185👍, 0💬