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

Can someone helper please?
The density of blood is 1.05 kg/m3, find the mass of a bag of blood for a transfusion, if the volume is 1.5 m3.
What is the cuplike depression of the hip bone into which the head of the femur fits?
Do I italicize "Nancy Drew" when referring to the Nancy Drew series? How about "The Hardy Boys" when referring to The Hardy Boys series?
Explain how are new discoveries more likely in anatomy or physiology
PLEASE ANSWER THANK YOU Jason has a long commute to his office and back every day. He has no colleagues who live in his neighborhood with whom he could carpool
What is the range of possible sizes for side ‘x’?
17 million Negroes cannot do as you suggest and wait for the hearts of men to change. We want to enjoy now the rights that we feel we are entitled to as America
What is plausible evidence supporting the hypothesis that birds evolved from dinosaurs?
Sherman goes golfing ever 6 th day and brad goes golfing every 7 th day If Sherman and brad both went golfing today how many days u til they will go golfing o