incompatible types error
<pre><code>import javax.swing.JOptionPane;
public class Result
{
public static void main (String[] args)
{
    int numa;
    int numb;
    int sum;
    String num1 = JOptionPane.showInputDialog(null,"Enter 1st Number: ");
    numa=Integer.parseInt(num1);
    String num2 = JOptionPane.showInputDialog(null,"Enter 2nd Number: ");
    numb=Integer.parseInt(num2);
    {
        sum=num1+num2;
    }

    if (sum&gt;=10)
        JOptionPane.showMessageDialog(null,"Congratulations"+sum);
        else if(sum&lt;10)
            JOptionPane.showMessageDialog(null,"the sum of the number less than 10");
            else if(sum&gt;100)
                System.exit(7);
}
}
</code></pre>
