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 the surface area of the cone to the nearest whole number? Use 3.14 for π. 2,198 m2 3,429 m2 2,813 m2 1,231 m2
how does wind and water change the size of mountains<br />
Explain the neutralization of vitamin c with sodium hydrogen carbonate?
Capitalism has evolved into a mixed economy throughout the world. truefalse
The war on terror is only in the United States. True False
In the new six-kingdom system of classification, __________ are now divided into two separate kingdoms, __________ and ___________, which form the basis for the
Sam is laying out patio stones in a triangular pattern. The first row has 2 stones and each row has 2 additional stones, as shown below. How many complete rows
Which one fits better into the sentence? “You needn’t to be so hysterical!” or "You mustn't be so hysterical!"
lol can someone help me on #'s 1 and 3 I'm confuzzled as ever LOL
Four times the sum of b and 24 is at most -15