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

Which is Sam Adams known for? A. writing pamphlets about independence B. founding the radical Sons of Liberty C. leading troops at Bunker Hill D. working to mak
If x= 0, 1, 2, and 3 and y=1, 1.5, 2, and 2.5, then what is the "y=" function?
Senator Jon Tester of Montana was reelected in 2012. If he decides to run again when his current term expires, in what year will the election occur?
1.) What role do stomata play in photosynthesis? 2.) Describe the process of pollination in angiosperms.
The carbon footprint of an activity is used to assess environmental pollution. What does it measure?
in a walk for charity, you walk at a rate of 100 meters per minute. how long does it take to walk 2 kilometers?
Which one of the following sentences contains two ideas joined by a connecting word? A. Sally lives with her parents, although she could afford her own ap
What is the capital of Maine
find the absolute value of each rational number |3.7|
This weekend you are planning to complete part of your assignment at the library to do this you need to store data on a removable storage device