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

Lila graphed the points -2 and 2 on a number line. What does the distance between these two points represent? A. The sun if -2 and 2 B. The difference of 2 and
if it's 11:30p.m.what is the time in the 24 he clock system.
A dwarf sea horse swims at a rate of 53.68 feet per hour. Convert this speed to inches per minute.
The use of ankle weights when running or walking A. Helps to improve cardiovascular endurance B. Isn't recommended because they can damage muscles and ligaments
yesterday is a.... (A) noun (B) verb
What is the lcm of 2 numbers if 1 number is a multiple of the other
Aisha thinks 1,275 rounded to the nearest hundred is 1,200 because "2 is less than 5"
Passing through the tunnel into the open air can be symbolically compared to _____.
Ella ______ da los libros a los chicos. (2 points) Question 6 options: 1) me 2) te 3) le 4) les
what are the name of the president from Africa