This is the code n its giving me the following error and even in bok code is correct same i haev have here, if some one can help
Thanx
import javax.swing.JOptionPane;
public class Compersion
{
public static void main (
String args[])
{
int num1,num2;
String firstnum, secondnum, result;
firstnum = JOptionPane.showInputDialog("Enter First Number");
secondnum = JOptionPane.showInputDialog("Enter Second Number");
num1 = Integer.parseInt( firstnum);
num2 = Integer.parseInt( secondnum);
result = "";
if (num1 == num2)
result = result + num1 + "==" +num2;
if (num1 != num2)
result = result + num1 + "!=" +num2;
JOptionPane.showMessageDialog(null, result, "Compersion Results");
System.exit( 0);