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 option is true of strength training?
Compare the cell cycle with mitosis. How do the separate events of each process support those goals?
APR photo McGraw-Hill Education Which structure is highlighted and indicated by the leader line?
Please help I am broke now D: Given a triangle with vertices A(4, -1), B(-3,0), and C(7,2), which points represent a reflection of Triangle ABC in the y-axis? O
A student pushes against a wall with a force of 30N. The wall does not move. What amount of force does the wall exert on the student? A. 0N B. Less than 30N C.
Friar Laurence sets a plan in motion. Which is NOT a part of the plan? Group of answer choices When she wakes up, Romeo will take her to Mantua Juliet should dr
Carmen feeds her dog 3/8 pounds of dog food for each meal. Carmen has just bought 24 pounds of dog food. For how many meals will the food last
Rewrite in simplest terms: -10(-v+6w)-w-9(-3w-v)−10(−v+6w)−w−9(−3w−v) I'm too lazy to do it.
Science anybody? I don't know how to answer this question-
If a computer prints 8.8 lines in 4 seconds, how many lines can it print per minute?