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

write the equation or the following situation and solve 25 of a number is equal to 100 increased by 125
Ethos includes _____. a.knowledge b.good will c.character d.all of these
The rectangle shown has a length (l) of 8 and a width (w) of 6.2. A second rectangle has a length of l + 2.5 and a width of w – 1.4. Find the area of the SECOND
Why did the colonists become unhappy with British rule?
I don't know how to do negative numbers I don't know how to add subtract multiply and divide them
When jackson works more than 40 hours a week he earns 1.5 times his normal hourly rate for each of the extra hours. jackson worked 43 hours one week. what was h
What is a flying buttress? a. an architectural structure used to provide horizontal strength to a wall b. a device used during the Gothic period to build a la
a basketball team has 9 players, in how many different ways can the coach select 2 players to be the captains for tonight's game.
non examples of pure substance
what kind of chemical change do you think occurs when a banana peel turns brown in the open air?