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...
Will the bright pixel tracing function only work in darkness? Make your own movie with someone writing with a glow stick or flashlight, in normal bright- ness. Does the function still work? Do you need to use a different threshold value? Do you have to try a different approach to identify “bright” pixels (e.g., perhaps by comparing luminance a particular pixel to the pixels around it)?
What will be an ideal response?
Today's clock speeds are measured in megahertz (MHz)
Indicate whether the statement is true or false
Dialog boxes present information or require a response from the user
Indicate whether the statement is true or false
64-bit versions of Windows 7 and 8 have 32-bit and 64-bit registry keys
Indicate whether the statement is true or false