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 is 10 less than X
is 9.707 greater than 9.717
rename the number 120,000
The Aztecs established an empire in _____.
Jorge said that 0.029 can be written as 29/100 is he correct explain
Electricity problem from Jan. 1959 issue of QST; Using Ohm's law find.
In the fifth year of operation the profit of a company was 3 times the profit it earned in the first year of operation if its profit was $114,000 in the fifth y
Raul and Tyree have open cans of soda. The can A is left sitting on the table while the other cans B and C are each heated on a hot plate. Can B is heated to a
What is the value of u + v + w when u = –10, v = 4, and w = 8? a. –22 b. 2 c. 14 d. 22
In which one of the following sentences does an adverb modify an adjective? a. Lucy danced tirelessly. b. His appearance greatly affected Candace. c. His shi