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

List five kinds of cases that come under the judicial power of the United States courts.
Which of the following statements is not true?"Whom" can serve as the object of a preposition."Whom" is an object pronoun."Who" and "whom" are personal pronouns
Convert 57 mL to its equivalent in L using dimensional analysis
How did geography influence the way the Incas ruled the empire?
How do I write an equation in slope intercept form from; Slope 3, y-intercept at -4
if the slope of a position versus time graph is downward what kind of motion produced the graph
How do I write an equation in slope intercept form from; Slope 3, y-intercept at -4
Is there DNA in our food? How do you know?
A plane flies round-trip to Philadelphia. If flies to Philadelphia at 220 miles per hour and back home with a tailwind at 280 miles per hour. If the total trip
Is there DNA in our food? How do you know?