-
Mon: Go over Technews assignment.
- Chapter 5 Methods
(continued)
- Review: Anatomy of a Method Declaration:
- method name
- parameters (type & name for each)
- return type
- body
- 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
method.
E.g. see NUMBEROFCHANCES and WINSCORE in
lab assignment
-
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
-
In Lab: