Mon: Go over Technews assignment.
- Chapter 5 Methods
- Review: Anatomy of a Method Declaration:
- method name
- parameters (type & name for each)
- return type
- Complete in class problems.
- Review - scope of a variable.
- New: Recursion
New: Global variables (fields or member variables). These reside inside of the class but outside of any
E.g. see NUMBEROFCHANCES and WINSCORE in
Adding Javadoc comments to your code:
- See textbook on p. 183 Commenting methods
- See Javadoc comments in new lab assignment. Copy code into DrJava or
download the skeleton code here. Then,
run Tools->Javadoc->Preview Javadoc for Current Document.
Compare to the Java 6 API.
- Javadoc tags
GUI Card Example
Spring classes - see catalog