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 describes a significant difference between the North and the South in the years leading up to the Civil War?
Over which of the following domains of governance do state governments NOT have authority?
If f(x) = x3 – 2x2, which expression is equivalent to f(i)?
Kathy lives directly east of the park. The football field is directly south of the park. The library sits on the line formed between Kathy's home and the footba
Jonah had 4 books Stacy had 7 books how many books did they not have
What did the archetype of the devil usually symbolize in the American romantic literature The greed, cruelty and dishonesty of society The religious beliefs and
Opium is a spice cherished by the Chinese. true or false
what fraction of a pound is 25 pence
IN waging a total war, a nation channels all of it's _____ into the war effort.
What event constituted the Boston Tea Party