aleyaj9698 aleyaj9698
  • 03-04-2021
  • Computers and Technology
contestada

Ask the user to input a country name. Display the output the message "I would love to go to [country]"

Respuesta :

nerd1232 nerd1232
  • 03-04-2021

Answer:

import java.util.Scanner;

public class Country{

public static void main (String[] args){

Scanner input = new Scanner(System.in);

System.out.print("Input a country name: ");

String country = input.nextLine();

System.out.println("I would love to go to " + country);

}

}

Explanation:

Answer Link

Otras preguntas

What is 3 square root of 24- 4 square root of 54
What is 3 square root of 24- 4 square root of 54
What was the approximate distance between Britain and it's North American colony A. 1,500 miles B.2,800 miles C.3,700 miles D. 4,900 miles Approximately ho
Two long tubes of muscle that lead from the stomach and help absorb food are the _____ and the_________ .
Substitution method 1) 3x + y = 7 4x + 2y = 16 2) 2x + 2y = 4 X - 2y = 0
A child throws a ball up in the air to a height of 3.5 m and catches it at the same point from which he threw it. The ball is in the air for a total of 1.7 s. W
All of the following were provisions of the Constitution as originally ratified EXCEPT (A) indirect election of senators (B) the counting of three fifths of sla
A hydrogen atom has one proton, two neutrons, and no electrons. Is this atom neutrally charged? Explain your answer.
If the edges of a cube add up to 4 feet in length, what is the volume of the cube?
All of the following are true about the Stamp Act EXCEPT (A) the act directly affected all colonists (B) as a result of colonial resistance to the Stamp Act, al