Spring 2011 Lecture 21
- Date
- February 23, 2011
- Topics
- HW #5
- Analysis
- Design
- Using Control Structures within other Control Structures
- Class String
- (Provided for future reference: Overloading, Overriding, classes Calendar,
Day, Month, & Year)
- References
- Loops
- Nested Loops I
- Nested Loops II
- class String
- we have been using the class String for a while, examine the methods that can performed upon a String
object. Observe that the class String is contained within the package lang and automatically imported
for our use in Java programs.
- class Integer
- examine the class Integer, including the methods that can performed upon an Integer object. Observe
that the class Integer is contained within the package lang and automatically imported for our use
in Java programs.
- class Paragraph
- how can we search the list of sentences?
- class ArrayList
- examine the list of methods available (including those inherited from another class or
in other words, "those passed on to us by another class") for the method iterator.
- interface Iterator
- classes Calendar, Day, Month, & Year
- nota bene: it is known that an error exists within this solution, practicing debugging by
finding and fixing the error.
- Reading
- Chapter 4.1 - 4.11; 4.12.6
- Exercises
- 4.1 - 4.40
- You find and reference the class Integer in the Java Documentation.
- Practice converting while loop examples into for loops.
- Practice converting for loop examples into while loops.
- Practice converting for-each loop examples into for loops.
<<<< Prev
Next >>>>