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

I have been stuck with this one, and i would like to how to solve this. In each case, determine whether line AB is parallel or perpendicular to CD. (a) A(0, 0),
differentiate benzene and cyclohexane
write 540 as a product of prime numbers
need help with this question#20
what british policy did american colonists protest at the boston tea party
what is 54 times 3 times 71 minus 45 plus 102 divided by 6 times 25 subtracted by 34 times 141 plus 32 subtracted by 67? Also put 578402/10856 in simplest form.
What is sociocultural ?
How many times dose 150 go into 1000
how many yards in 1/4 of a mile? Please help
What part of the cell produces ATP for the blueberry plant to grow? A. Mitochondrion B. Cytoplasm C. Ribosome D. Nucleus