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 giant star has a luminosity of 300 its color is most likely to be a. yellow red b.black c.white d.blue white
Which number is divisible by 3 and 5 a. 130 b. 325 c. 4113 d. 2040
Those who opposed the provisions of the Sherman Antitrust Act believed that success in business depended on
What are the most important questions in life? Why?
what is 5.264 rounded to the nearest ones
What publication convinced colonists that it was time to make the break from Britain and create a new nation of their own?
You have trained all year for a marathon. In your first attempt to run a marathon, you decide that you want to complete this 26-mile race in 4.5 hours. What wou
Rosie the Riveter was one of the most successful propaganda campaigns of the Office of War Information (OWI). What best describes the objective of the OWI? A. T
round 1045 to the nearest thousand
It is often easier to determine if an object or organism possesses the characteristics of life rather than life itself. a. true b. false