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 government body is usually responsible for recycling ordinances in a town? a. Federal b. National c. Local d.State
What is the equation of this line? y=−23x y=23x y=−32x y=32x
Why do so many writers use and quote shakespeare?
what diagram represents 2(a+3)
Calculate %ic of the interatomic bonds for the intermetallic compound al6mn.
Which type of scientist statement is defined as “a possible explanation or answer to a scientific question that is based on prior knowledge or research and is t
How does the transactional model of communication differ from the linear model?
The momentum of an object depends upon the object's _____ & _____
What are the characteristics of African architecture?
You estimate that there are 66 cars in a parking lot. The actual number of cars is 75. A. Find the percent error B.what other estimate gives the same percent er