1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sineoko [7]
3 years ago
15

Java Question-5 Declare and initialize two variables called first and second. Write a single statement that will print the messa

ge "first is " followed by the value of first, and then space, followed by "second = ", followed by the value of the second. Ex: first is 55 second = 123
Computers and Technology
1 answer:
notsponge [240]3 years ago
4 0

import java.util.Scanner;

public class HelloWorld {

   public static void main(String[] args) {

       Scanner reader = new Scanner(System.in);

       System.out.print("Enter two number: ");

       int number1 = reader.nextInt();

       int number2 = reader.nextInt();

       // println() prints the following line to the output screen

       System.out.println("The first is " + number1+" and second= "+number2);

   }

}

You might be interested in
What’s a device that uses the measurement of a BIT?
Akimi4 [234]
A computer uses BIT. Hope this helps
5 0
3 years ago
Running the Disk Cleanup utility is a quick way to ________. Group of answer choices defrag your hard drive remove spyware progr
grigory [225]

Answer:

Clear out any garbage file on the drive

Explanation:

7 0
3 years ago
When are computers most vulnerable to threats or damage?
valentinak56 [21]
With virus protection
8 0
4 years ago
The report Jamie created has a dark background and the page number is not displaying correctly. Which formatting option would he
Readme [11.4K]
The Font Color <span>formatting option would be needed to apply to the page number to add contrast between the background and the page number</span>
8 0
3 years ago
XX<br> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvbvvvvvvvvvvvvvv
avanturin [10]

Answer:

vvvadjdjllsslj

Explanation:

8 0
4 years ago
Read 2 more answers
Other questions:
  • Each character in a string has a(n) _______________ which specifies its position in the string.
    13·1 answer
  • Write a program that opens a text file and reads its contents into a queue of characters. The program should then dequeue each c
    11·1 answer
  • How is a ink pen better than a digital pen.
    8·1 answer
  • In a client/server architecture, an optional _____ is sometimes used to pass bulk information to the server. a. request line b.
    8·1 answer
  • Type two statements.
    11·1 answer
  • Why do we say that IP provides ""best-effort"" service?
    11·1 answer
  • A client wishes to update their legacy system even though there have been no
    15·1 answer
  • Unscramble dki-----------------------------------------------------------------------...........
    8·2 answers
  • What are the top 10 most dangerous computer viruses ?
    13·1 answer
  • 1 Which one of the following is a transmission
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!