Connect with experts and get insightful answers to your questions on IDNLearn.com. Find the solutions you need quickly and accurately with help from our knowledgeable community.

Ask the user to input a country name. Display the output the message "I would love to go to [country]"

Sagot :

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: