import java.util.Scanner; // A program called "Conversation". public class Conversation { // Code allowing us to read input from the keyboard. static Scanner keyboard = new Scanner(System.in); // The starting point of the program's statements. public static void main (String[] args) { // Ask the user a question. System.out.println("What is your name?"); // Read input from the keyboard until the next newline // (i.e., until the user hits enter). String name = keyboard.nextLine(); System.out.println("What is your quest?"); // Read input from the keyboard until the next newline String quest = keyboard.nextLine(); System.out.println("What is your favorite color?"); String color = keyboard.nextLine(); // Print a message to the user. System.out.println("Hello, " + name + "!"); System.out.println("Good luck on your quest to " + quest); System.out.println("Your favorite color is " + color); System.out.println("Goodbye!"); } // End point of the program's statements. } // End of the whole program.