Decisions without if statements
<p>Here are the instructions:</p>

<pre><code>/*
 * Write a method called isGameOver. The method should have three parameters, 
 * all integers and in this order: the player's score, the number of lives 
 * the player has remaining, the game level. The method should return true 
 * if the game is over and false otherwise, according to the following game
 * rule. The game continues only when the player has at least one life 
 * remaining and one of these conditions is met: 
 *   --The player is on level 1 and his/her score at least 1000. 
 *   --The player is on level 2 and his/her score at least 2000. 
 *   --The player is on any level and his/her score at least 3000. 
 *   
 * For example, the method call isGameOver(1500, 1, 2) should return true. 
 * 
 * DO NOT USE AN IF STATEMENT
</code></pre>

<p>And here is my code:</p>

<pre><code>public static String isGameOver(int score, int lives, int level) {

    while (level == 1 &amp;&amp; level &lt; 1001)
        return "false";

    while (level == 2 &amp;&amp; level &lt; 2001)
        return "false";

     while (level == 3 &amp;&amp; level &lt; 3001)
        return "false";

    return "true";          
}
</code></pre>

<p>It's obviously not working, and I just have this feeling it's because I used a while loop. How can I make a decision without using an if statement?</p>