Hi, I recently installed jcreator and jdk 1.6
i was testing out the program to see if it worked correctly
I used a really simple program(below) but whenever I type a second integer, the error "Make sure you enter an integer" appears, I've tried a few simple programs to the same affect. What is wrong
class Oneb
//
// A simple program that calculates the sum, product and average of three numbers
{
public static void main(String args[])
{
int n1;
int n2;
int n3;
int sum;
int product;
double average;
System.out.print("Enter the first number -> ");
n1=EasyIn.getInt();
System.out.print("Enter the second number -> ");
n2=EasyIn.getInt();
System.out.print("Enter the third number -> ");
n3=EasyIn.getInt();
sum=n1+n2+n3;
product=n1*n2*n3;
average=sum/3;
System.out.println("The sum of the three numbers is " + sum);
System.out.println("The product of the three numbers is " + product);
System.out.println("The average of the three numbers is " + average);
}
}