Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions