My problem is that program is not reading codes as i intended \"he\" would.
I have
if (hero.getPos() == (6 | 11 | 16)) { move = new Object[] {\"Up\",
There is no such operator. But if you are comparing number, you can use switch do simulate that. Here is how:
int aNumber = ci.getNumber(); swithc(aNumber) { case 6252001: case 5855797: case 6251999: { ... break; } default: { ... // Do else. } }
Hope this helps.