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

Why did the Western Front barely move throughout World War I? A. Trench warfare limited territorial gains on either side. B. The vastness of Russia made gains
What colors make the color turquoise?
URGENT!!!!!!!!!!!!!!!!!!!!!!Choose the adjective that best describes the italicized word. The cat scrambled up the tree black frightened friendly
18 players and 3 coaches. this year, 162 players signed up to play soccer. how many coaches are needed?
In the following distribution of the variable semesters completed, which is the mode: 4, 3, 1, 0, 3, 3, 4, 0, 3, 2?
will the quotient of 5 divided by 783 greater than 5
The animals in the food web release _____ into the enviroment , which plants then use for ______ ?
one day a corn stalk was 0.85m tall. A tomato plant was0.850m. A carrot top was 0.085m.Which plant was the shortest?
What are the variable terms in the expression? 6x^2 + 3xy + 4z
In the expression, 7 4 x 3, you should multiply the 3 and the 4 first.