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

COMMONLIT THE POETRY QUILT by Deirdre Mundy PART A: Which sentence describes a theme of the short story? A Poetry is useful and important. B Poetry is easy to
Does y=-2x + 3 and y=x - 5 intersect on the y or x axis?
Which emerged after deindustrialization? A) free trade B) manufacturing-based economy C) Oil surplus D) service-based economy E) stagflation
Solve and graph the absolute value inequality: |2x + 1| ≤ 5.
Blood returning from the lungs enters theA. Left atriumB. Left ventricleC. Right atriumD. Right ventricleE. Aorta
Can someone help me with 1,2,4 please show me how to do it
15 POINTS!!!!! Why did Arabic numerals replace Roman numerals? A. They were more accurate. B. They were based on the Quran. C. They made it easier to perf
Who provided x-ray diffraction photographs of purified dna fibers that suggested a helical structure with a consistent diameter of about 2 nm and a complete hel
Can some one verify the trigonometric identities?
what is the answer??