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

Lester worked 12 hours last week at the grocery store and earned $93.00. If he continues to earn the same hourly pay, how many additional hours must he work to
The value of x must be greater than .
In 1832, the United States Supreme Court ruled in Worcester v. Georgia that the state of Georgia had no right to force the Cherokee from their native lands. Why
In a Toast to the Oldest Inhabitant, Twain says the new England weather must be made by whom?
How was a romanticism a direct reaction to rationalism
Each of these four organisms began life as a single 2N cell. Cells in each organisms divided and differentiated. Probably the single most important proces
Read the following claim: Newborns clearly prefer disposable diapers to cloth diapers.What makes this a weak claim for an argumentative research paper? A.It i
African Americans gain cultural political and economic power in the Years following dr. King's death in all of the following ways except A) Black Riders begin w
a car travels 220 miles in 4 hours. what is the rate of the car in miles per hour
Who wrote oh what a tangled web we weave