Java Reference
In-Depth Information
CHAPTER
9
U sing C ollections and S trings
in a R eusable C lass
Objectives
You will have
mastered the material in
this chapter when you can:
• Develop a class for reuse
• Understand class and instance variables
• Use the final qualifier
• Understand the Collections Framework
• Create an ArrayList object
• Create overloaded constructors
• Code accessor (get) methods
• Code mutator (set) methods
• Code accessor methods for read-only attributes
• Understand when to use public and private methods
• Code public instance methods
• Use an ArrayList method
• Understand and use the String and StringBuffer classes
• Code private helper methods
• Test a reusable class
• Use a JPassword field
 
Search WWH ::




Custom Search