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

5 times the sum of 7 and 23
the basic requirements for industry growth are capital natural resources true or false
What is an emotional appeal? an appeal that addresses the reader’s feelings an appeal based on sound reasoning an appeal to authority that establishes credibili
Normal faults occur from _____ stress and reverse faults occur from _____ stress.
Round 99.49 to the nearest whole number
Why does George Orwell present Animal Farm as a fable? A. to show what a perfect society would be like B. to make a moral point at the end of the story C. to po
If five slices of pizza cost $5.50, how much do two slices cost? Ten slices? Half a slice ?
Write a fraction that is less than 5/8 and has a denominator of 8
On a particular day, the wind added 2 miles per hour to Jaime's rate when she was rowing with the wind and subtracted 2 miles per hour from her rate on her retu
write an expression for the calculation double 2 and then add5