I'd like to quickly check the result of a static method I'm analyzing, within the IDE if possible.
public static int foo(int a, int b){
return (a & 11) ^ b;
}
For example, right-click the expression and run it, something like
> foo(11, 2)
> 9
> foo(28, 3)
> 11
I don't know the result in advance (the actual code is more complicated), so unit testing is out of the question.
How can I do this?