You can;t use a switch for two variables, it only works for one.
Java Switch[
^]
The
expression
must evaluate to a single value, which is matched to teh single value in each case statement.
To do what you want, you need a set of
if
statements:
if (i == 0 && j == 1)
...
else if (i == 1 && j == 1)
...
...