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

find K if K divided by 64 equals 4
PLEASE HELP ASAP!!! CORRECT ANSWER ONLY PLEASE!!! Simplify. Assume x and z are nonnegative.
Is 0.7÷10 equal to 0.07
n which structures of green plants does photosynthesis primarily take place? Select one: a. stems b. flowers c. roots d. leaves please
mr. lacey changes his attitude in the story "stray." which of these statements by mr. lacey best illustrates this change? select all that apply. A. Oh, I took
476×11 =__ I need answer with shown work.
If you can walk 3 miles per hour, how much is that in meters per second?
Is it ok to drink a beer after 5 hrs after taking a flexeril?
A substance that is dissolved in another substance is which of the following 1) saturation 2) solubility 3) solute 4) solvent
According to Boyle’s Law, when pressure is increased... A- temperature is decreased B- volume is increased C- temperature is increased D- volume is decreased