Need help cannot figure out where I made the error.
--------------------------------------------------------------------------------
Can someone view what I have, I need help I cannot figure out where I went wrong.
Thanks
/* Jose N. Ramirez
CS151
This program will key you a brief overview of how
Java uses the new Scanner class to accept integers
entered then adds them by the user via the keyboard and assigns
them to a primitive variable. */
import java.util.*;
public class Math223
{
public static void main( String args[] )
{
int number1; // first number to add
int number2; // second number to add
int number3; // third number to subtract
Scanner scannerObject =new Scanner(System.in);
System.out.println("This program will add two integers then subtract the third");
System.out.println("together and output the product.\n");
System.out.println("Enter the first integer using the keyboard");
/* This statement assigns the first integer entered by the
user to the scannerObject named number1 */
number1=scannerObject.nextInt();
System.out.println("\n");
System.out.println("Now enter the second integer.");
/* This statement assigns the second integer entered by the
user to the scannerObject named number2 */
number2=scannerObject.nextInt();
System.out.println("You entered "+number1+" and "+number2+" and "-number3" ");
System.out.println("\n");
/*This statement multiplies the integers entered by the
user together and assigns the result to primitve variable
named product.*/
int product = number1 + number2 - number3;
/*This statement outputs the numbers the user enters and
the results obtained by adding them together then subtracting the third number.*/
System.out.println("The product of "+number1+" + "+number2+" - "-number3" ");
System.out.println(" is "+product+"\n\n\n");
} // end method main
} // end of Math223 class