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 many stanzas are in the poem “I Am Offering This Poem”? 1 4 6 8
A craft stick fits exactly on the diagonal across the bottom of the rectangular craft box shown in the diagram below.
A patient who has an upper respiratory infection reports using over-the-counter cold preparations. the primary care np should counsel this patient to use cautio
Please help me with both!!
What is Walt Whitman’s poem “when I heard the learn’d astronomer” about
PLEASE CHOOSE THE CORRECT ANSWER.
One month, the price of gas was $1.44. The next month the price of gas was $2.40. What was the approximate percent of increase from one month, to the next?
Which aspect of hexagonal writing leads you to consider works that have similar elements? evaluation analysis of literary devices personal allusions literary al
Help!! With 15,18,21!! Explain!!
By what year was almost all of north america free from foreign/colonial rule