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

A candidate for the house of representatives is required to be a citizen for at least how long?
Explain how justinian's plague was one of the major reasons for the weakening and decline of the byzantine empire.
what is this problem?9+6÷(8-2)
Icefish live in very cold waters (-1.8 degrees celsius) where temperatures are below blood's freezing point. which statements are true about icefish adaptations
which type of case would be likely be heard in federal court?
explain one way to add 3 digit numbers
Suppose that you found out that many of the sales people in your stores around the country are offering poor customer service. How might this eventually affect
How the model of an atom has changed over time because?
Consider the planes x_1 + x_2 + 3x_3 =4 and x_1 + 2x_2 + 4x_3 = 5 in r3 find parametric equations for the line of intersection of these two planes
Can someone help with this question