Write a complete Java console application that prompts the user for two numbers, multiplies the numbers, and then displays the result to the user.
What will be an ideal response?
```
import java.util.Scanner;
public class ConsoleMultiply
{
public static void main(String[] args)
{
//Create the scanner object for console input
Scanner keyboard = new Scanner(System.in);
//Prompt the user for the first number
System.out.print("Enter the first integer: ");
//Read the input
int firstNumber = keyboard.nextInt();
//Prompt the user for the second number
System.out.print("Enter the second integer: ");
//Read the second number
int secondNumber = keyboard.nextInt();
System.out.println(firstNumber + "*" + secondNumber + " is "
+ firstNumber * secondNumber);
```
You might also like to view...
The MsgBox action provides a useful tool in a database as it can be utilized to provide feedback to the user that the macro did indeed run. It directs Access to display a ________ with information provided from within the macro
Fill in the blank(s) with correct word
Using the Copy command removes selected text from your document and places it on the operating system Clipboard.
Answer the following statement true (T) or false (F)