the result seems wrong
<p>my code will be display me That is not an acceptable input. if I insert negative number. then proceed to prompt the input. But it continue to calculate. this is part of my code contains something wrong. but i did not see.  </p>

<pre><code>public static boolean checkOctal()
{
    boolean b = true;
    if (oct &lt; 0 &amp;&amp; oct &gt; 99999999 )
    {
        b = false;
        System.out.println("That is not an acceptable input.");
    }
    int tmp;
    int tmp1 = oct;
    while (tmp1 &gt; 0)
    {
        tmp = tmp1 % 10;
        tmp1 = tmp1 / 10;
        if (tmp &gt;= 0 &amp;&amp; tmp &lt; 8)
        {
            continue;
        } else
        {
            b = false;
            break;
        }
    }
    return b;

}
</code></pre>
