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 was one kind of music that became popular in the 1920s?
best way to dry a food thermometer
What command do you type in the search box to access the command line intrface in windows?
Select the correct numeral form of this number written in scientific notation. 5.0 × 10^10 0.000 000 000 5 5,000,000,000 50,000,000,000 500,000,000,000
How did the separate Deccan kingdoms stay linked? They bought each other’s goods through trade. They traveled common rivers, which allowed easy communication
When did widespread concern about bloodborne infections transform healthcare practices?
Question 12 After many cell divisions, a segment of DNA has more base pairs than it originally did. Explain what has happened.
Whose interest in fashion makes mass production feasible for manufacturers?
A group of artists might share a style - an identifiable kind of visual expression - because
I need two solutions to y=8x-5