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

Three more than four times a number is 15
The ultimate source of heat in the process of global warming is ?
a doggie day care charges $21.50 per day. If you leave your dog 5 days a week the discount is 20%. what is the cost of leaving your dog for 5 days in a week ?
Many people moved to California in 1848 following the establishment of Bear Flag Republic. the outlawing of slavery. the discovery of gold. the completion of th
Three more than four times a number is 15
Generally, since the beginning of the twentieth century, the word imitation is usually associated with _______ rather than superior art
Gregor Mendel used pea plants that were heterozygous for each of two traits—seed color and seed shape—to generate a dihybrid cross. The phenotypic ratio of the
Piggy says now we've really got a beast who is she talking about
5 miles equals How many yards?
which of these events in history does seidman say occurred in direct violation of the constitution? a. the attack of Fort Sumter b. the Emancipation Proclamatio