Yeah, I've been trying to debug this chunk of code to no avail. It seems correct yet I keep getting errors. I'm really new to this so bear with me.
public class Arithmetic { import java.util.Scanner; public static void main( String args[] ) { Scanner input = new Scanner( System.in ); int num2; int num3; int sum; int product; int average; System.out.println( "Enter first integer:" ); number1 = input.nextInt(); System.out.println( "Enter second integer:" ); number2 = input.nextInt(); System.out.println( "Enter third integer:" ); number3 = input.nextInt(); sum = num1 + num2 + num3; product = num1 * num2 * num3; average = ( num1 + num2 + num3 ) / 3; System.out.println( "The sum is %d\nThe product is %d\nThe average is %d", sum, product, average ); } } // end class Arithmetic