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

A cable is lifting a construction worker and a crate. The weights of the worker and crate are 965 N and 1510 N, respectively. The acceleration of the cable is
what forces led Americans to declare war on Britain in 1812?
Cory's average score after 8 tests is 91%. If he gets a 78% on his 9th test what will his new average be? How do i figure out this problem?
what is the balanced chemical equation for caffeine?
describe why the bureaucratic personality can be dangerous.
what is 16,700,000,000,000,000 estimated as the product of a single digit and a power of 10
K stands for a whole number. K + 7 is greater than 100 K - 7 is less than 90 Write all the numbers that k could be. Please help me
A Coast Guard ship patrols an area of 125 square miles. The area the ship patrols is a square. About how long is each side of the square? Round your answer to t
A cable is lifting a construction worker and a crate. The weights of the worker and crate are 965 N and 1510 N, respectively. The acceleration of the cable is
What Percent Of 700 Is 385