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 events began and ended athens' golden age??
Which decimal is equivalent to 13/20?
What is/was the American dream? I need at least 10 bullet points about what the American dream was please somebody help me
Which of the following can fix nitrogen? Answer  A.human industrial processes   B.lightning  C.certain bacterial species   D.all of the above
what creates more friction aluminum foil, wax paper or plastic wrap
Rmshot bought a 3.5oz chocolate bar.within 15minutes he had eaten 0.6 of the bar. How many ounces did he eat?
Hitler intended to defeat great Britain by
What is/was the American dream? I need at least 10 bullet points about what the American dream was please somebody help me
Hitler intended to defeat great Britain by
What is a sound wave?