Hello guys, i tried something like this:
boolean funkyBoolean = true;
int array[] = funkyBoolean ? {1,2,3} : {4,5,6};
But this code won't even compile.
Is there any explanation for this? isn't funkyBoolean ? {1,2,3} : {4,5,6}
a valid expression?
thank's in advance!