public class FirstProgram
1: import java.util.Scanner;
2: /**
3: @author Frank M. Carrano
4: @author Timothy M. Henry
5: @version 5.0
6: */
7: public class FirstProgram
8: {
9: public static void main(String[] args)
10: {
11: Scanner keyboard = new Scanner(System.in);
12: System.out.println("Hello out there.");
13: System.out.println("Want to talk some more?");
14: System.out.println("Answer yes or no.");
16: String answer = keyboard.next();
17: if (answer.equals("yes"))
18: System.out.println("Nice weather we are having.");
19: System.out.println("Good-bye.");
20: } // end main
21: } // end FirstProgram