error: Illegal static declaration in inner class asignacion1.sumar
<p>the practice is about Method overloading</p>

<p>the problem is in this lines: </p>

<pre><code>public class asignacion1 {


public asignacion1() {
}

class sumar {

    public static int calcular (int num1, int num2){
        int r = num1 + num2;
        return r;
    }

    public static double calcular (double n1, double n2){
        double r = n1 + n2;
        return r;
    }


}
</code></pre>