Question: I need help fixing this code import java.util.Scanner; public class BonusBug 0 3 { public static void main ( String [ ] args ) {

I need help fixing this code
import java.util.Scanner;
public class BonusBug03
{
public static void main(String []args)
{
int num1, num2, result;
Scanner keyboard = new Scanner(System.in);
System.in.println("Enter an integer value for first number ");
num1= keyboard.nextint();
System.out.println("Enter an integer value for second number ");
num2= key.nextInt();
result = product(num1,num2); System.out.println("The product of "+ number1+" and "+ num2+" is : "+ result);
}
public static int product(int number1, int number2);
{
int productTotal;
productTotal = num1* number2;
return producttotal;
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!