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 is a factor of a whole number
Help me PLEASE! Will MARK BRAIN!!
A journalist is writing an article based on information in "Nobel Prize in Literature Press Release." Which title BEST represents information the journalist wo
The colonists believed that the power of the government should come from___. Writers of The Declaration of Independence The president The Magna Carta The peop
The keyword outline is the skeleton outline transferred to notecards.
microeconomics chapter 7
PLEASEEE HELP What's the product of -2x^3+x-5 and x^3-3x-4? a) Show your work. b) Is the product of -2x^3+x-5 and x^3-3x-4 equal to the product of x^3-3x-4 and
The expression 20L + 25G – 10 calculates the number of dollars that the ABC Lawn Company makes from mowing L lawns and raking G gardens. How many dollars does
read the text and answer the following question.English. answer asap please
find the median and mode for each set of data 1,1,1,1,2,2,2,3,4,7