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

How did the Jews practice their religion during the exile to Babylon.
Solve the following equation algebraically x^2=192 a. 13.86 b. -13.86, 13.86 c. -14.36, 14.36 d. -96, 96
Θοθ, Thoth, is the greek god of knowledge, so it would be common to say "Θοθ, what's this?".True or False
4= 4x + rx+6 How do I solve this
what is the y-intercpt of (-4,-3)?
Question 11 (1 point) The table below provides information about the African-American population in several cities after the Civil War. POPULATION OF AFRICAN AM
Why couldn’t African-Americans or poor White farmers start their own farms?
8880 divided bye 10 to the power of 2
How does the point of view affect the plot of the passage?
Please answerrrrrerrrrr. -5x+12=19+2x