Can't Remember How to Do This
In programming class, we just learned some very simple java. However, now I can't remember the code! Can someone tell me what I'm doing wrong?
import javax.swing.JOptionPane;
public class InputOutput {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello World!");//Output
int num1;
int num2;
int sum;
string input1;
string input2;
System.out.println("Enter an integer.");
input1=JOptionPane.showInputDialog("Input an integer...");
input2=JOptionPane.showInputDialog("Input another.");
num1=Int.parseInt(input1);
num2=Int.parseInt(input2);
sum=num1+num2;
System.out.println("The sum is"sum);
}
}