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

When f(x)=4, what is the value of x? 0 2 3 4
Do you think it is important for our country to remember the history of immigration? Why or why not?
The figure shown is a rectangle. If you draw a new rectangle in which the dimensions are doubled, what is the relationship between the PERIMETERS of the two rec
the assination of Franz was the immediate cause of?
Which form of the modifier best completes the sentence? Of the twins, Jeff is the __________ listener. A.bestest B.better C.best D.more better This would be B.
why don't we see auroras on the moon?
Which of the following is not included in comparative government? social customs political institutions governments of the world political beliefs
If f(x) = 10x and g(x) = 0.5x + 1, find g(f(5)).
A natural state, I'm sought by all. Go without me, and you shall fall. You do me when you spend, and use me when you eat to no end. What am I?
please help me with those two