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

What is the slope of the line
help me please i ned to get good gade
Narcissistic personality disorder simple definition in your own words
Which is true regarding the graphed function f(x)? 1. f(0) = 32. f5 = -13.f(3) =2 4. f(2) = -2​
Liang Company began operations in Year 1. During its first two years, the company completed a number of transactions involving sales on credit, accounts receiva
hi I'm a security guard but my English is not good enough my question is when my company ask me (wellness check ,all clear ?)how can i answer professionally tha
[tex]\sf\:Q.\:Show \: that \: there \: is \: no \: positive\:integer[/tex][tex]\sf\:n \: for \: which \:\sqrt{n - 1} \: + \:\sqrt{n + 1}\:is[/tex][tex]\
A sample survey was taken of 100 customers to determine which brand of snack crackers they prefer. Brand A was selected by about 17% of the customers, brand B w
area of a rectangle if the length is 2/3 and the width is 1/2​
What was it called when states were allowed to choose if they want it to be a slave state or a free state