How do I validate the less then zero inputs efficiantly without so many of the same else statements?
<p>I am trying to create a computer simulation of money losses over blackjack games. However I am running into a bug where if I put a less then zero value in one of the prompts, the program has to go through all the other prompts before warning about the less then zero.</p>

<p>Is there a way to immediately warn about less then zero values without having to put the same exact else statement for each if over and over again?    </p>

<pre><code>private void menu()
{
    boolean NonNumeric=false;
    //This is so a different exception is thrown for the minimum stakes since it's a float.
    boolean isDecimal=false;
    while(getRounds()&lt;=0 || getPlayers()&lt;=0 || getStakes()&lt;=0 )
    {
        try
        {
            Scanner input = new Scanner(System.in);
            if(getRounds()&lt;=0)
            {
                System.out.println("Enter number of rounds.");
                setRounds(input.nextInt());
            }
            if(getPlayers()&lt;=0)
            {
                System.out.println("Enter number of players.");
                setPlayers(input.nextInt());
            }
            if(getStakes()&lt;=0)
            {
                System.out.println("Enter minimum stakes.(Note: All players bet minimum only)");
                isDecimal=true;
                setStakes(input.nextFloat());
            }

        }

        catch (InputMismatchException e ) //In case some idiot enters a letter or symbol.
        {
            //This if statement is so that a different message comes if the invalid entry is a float.
            if(isDecimal==true)
            {
                System.out.println("Entry must be a number. Not a letter or symbol. Try Again.\n");
            }
            else
            {
                System.out.println("Entry must be a whole number. Not a letter, decimal, or symbol. Try Again.\n");
            }
            /*This boolean is so that the below if statement does not run if the user enters a letter
            since the integer defaults back to a 0 on exception.*/
            NonNumeric = true;
        }
        if(getRounds()&lt;=0 || getPlayers()&lt;=0 || getStakes()&lt;=0)
        {
            System.out.println("Number must be greater than 0.\n");
        }
    }
}
</code></pre>
