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

What does james rachels think that we could learn from cultural reali?
The Northwest ordinance outlined a plan for the future of the Northwest territory, which provision was not part of that plan?
Which pattern of inheritance results from individual organisms having many different genes working at the same time to control a single trait? A. Incom
I need help with this question?????
Add: 1⁄2 + 2⁄5 + 1⁄4 =
Simplify the expression. (6k^3)^3 6k^6 216k^6 216k^9 6k^27
Which form best describes the poem The Tide Rises, the Tide Falls
PLEASE HELP I NEED IT. (20 POINTS!) Question 13(Multiple Choice Worth 3 points) (Going Global LO 7 LC) The table below describes an international organization:
Who was the first president of United States?
Which of the following are true statements about regular polygons? check all that apply.