Java error: Exception in thread "main" java.lang.NoSuchMethodError: main
<p>I got this problem when running the following code in Java:</p>

<pre><code>public class comparison
{
    public static boolean main(String[] args)
    {
        if (0.1 + 0.1 + 0.1 == 0.3) return true;
        else return false;
    }
}
</code></pre>

<p>Can anybody tell me why and how to modify the code?</p>
