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

Do you agree with Milton Babbit's idea that modern composers should forget about the audience and retreat to writing in private for themselves and other music p
Llena el espacio con la respuesta correcta. En Panajachel se encuentra
In Figure 1, starting from the left, what magnetic poles are shown on the two bar magnets?
During which year does one of the projections show the human population reaching carrying capacity? A. 2045 B. 2020 C. 1960 D. 2080
What impact did President Hoover’s philosophy of government have on the economy? (P. 684)
I need help on this question.​
How many minutes is it
A night lamp uses a 30 W bulb. If it is left on continuously for 8 hours, how much energy will it use?_____ kWhThe answer was 0.24!
what was the impact world war first on middle class​
Which of the following are considered measures of variability? I. mean II. interquartile range III. mean absolute deviation