I think i have everything write except for the Input statements. It is telling me that JOptionPane can't be resolved.
Here is what I have so far.
public class Main_Class {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String firstNumber;
String secondNumber;
int input1;
int input2;
int sum;
int difference ;
int product;
double average;
//read in first number as a string
firstNumber = JOptionPane.showInputDialog("Enter first integer");
//read in second number as a string
secondNumber = JOptionPane.showInputDialog("Enter second integer");
//convert numbers from String to type in
input1 = Integer.parseInt(firstNumber);
input2 = Integer.parseInt(secondNumber);
//add the numbers
sum = input1 + input2;
//display the results
JOptionPane.showMessageDialog(null,"The sum is") +sum'
"Result", JOptionPane.PLAIN_MESSAGE);
}
}