Is there a simpler way to check multiple values against one value in an if-statement?
<p>Basically, what I want to do is check two integers against a given value, therefore, classically what you would do is something like this:</p>

<pre><code>//just to get some values to check
int a, b;
a = (int)(Math.random()*5);
b = (int)(Math.random()*5);

//the actual thing in question
if(a == 0 || b == 0)
{
//Then do something
}
</code></pre>

<p>But is there a more concise format to do this?  Possibly similar to this (which returns a bad operand type): </p>

<pre><code>//just to get some values to check
int a, b;
a = (int)(Math.random()*5);
b = (int)(Math.random()*5);

//the actual thing in question
if((a||b) == 0)
{
//Then do something
}
</code></pre>
