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

If f(x) is 4x-3 what is (f^-1of) (10)
What is the probability of someone correctly guessing your Social Security number? (Assume all digits 0-9 are available for use)a
f f(x) = 2x2 and g(x) = 3x, what is (g o f)(x) a. 6x2 b. 9x2 c. 18x2 d. 8x4
The Commissariat established by Frederick William in Prussia became A. the overseer of the army. B. an agency of civil government. C. both a military and civil
Hey, need some help reverent A. respectful B. respect C. reply D. to spoil
what does como eres tu mean in spanish?
Hey, need some help reverent A. respectful B. respect C. reply D. to spoil
If f(x) is 4x-3 what is (f^-1of) (10)
What was the South’s greatest concern when California applied for statehood?
let g(x)=x-3 and h(x)=x^2+6 find (h o g) (1)