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

Factor the expression. If the expression cannot be factored, say so.
What all the multiples of 81?
a lunch bill including tax, is divided among you and 5 friends. everyone pays less than $8.75. write and solve an inequality that describes the total amount of
What is 25% of $500.00? I think the answer is $475.00 Can someone verify if twenty five percent of 500.00 is $475.00
What were the contributions of the Harappan civilization?
The ______ was established in 1943 to assist in the transition from a peacetime to a wartime economy ?
Factor the expression. If the expression cannot be factored, say so.
What all the multiples of 81?
Factor the expression. If the expression cannot be factored, say so.
The ______ was established in 1943 to assist in the transition from a peacetime to a wartime economy ?