We probably will not finish everything from both of these
chapters this week. We likely won’t get to everything
about arrays. Whatever is not covered this week will be
covered next week.
Chapter Six - Methods: A Deeper Look
This chapter examines methods in greater detail.
- Methods in general
- Static methods
- The Math class static methods
- Specifying parameters
- Three ways of calling a method
- The method name alone
- <Reference Name>.methodName (non-static
& static)
- <Class Name>.methodName (static)
- Argument promotion
- API Packages (What’s in the library?)
- Enumerations
- Random numbers (Including a Craps simulation)
- Method overloading (not to be confused with method
overriding from Chapter 10)
- Drawing a smiley face (a little more GUI).
Chapter Seven - Arrays
This chapter covers the array data structure.
- Grouping of like data types
- Indexing (or subscripting)
- Declaring arrays
- Allocating arrays
- Initializing arrays
- Manipulating array elements
- The enhanced for statement. (Logically, this
would fit with Chapter Five, but it needs a formal
data structure to actually be used).
- Arrays as references
- Multidimensional arrays (may slide to next week)
- Variable length argument lists (using arrays)
- Drawing a rainbow (a little more GUI).
Exercises
In order to reinforce the principles you’ve learned
in these chapters, I’m asking you to do the following
programming exercises. Neither of them require any knowledge
of Java beyond what was covered in the first seven chapters.