ICA-CP: 12/10/08 - CASE Parrot program to create Eliza
Today we reviewed the parrot program each of you did at the beginning of the school year. In order to create the Eliza program, modify your parrot program. A couple of notes from the line by line analysis we did on the parrot program today:
1) The == symbol compares variables of type boolean, int, and double data types
2) The .equals method, as in userAnswer.equals(Done), compares two String variables
3) The word "final", as in Final String Finished = "Done"; , makes the variable into a constant so that the value can never be changed from "Done".
0 Comments:
Post a Comment
<< Home