TeachJava
| TeachJava!
|
Resources
Tuesday Outline
Morning
- An Extended Example: Lists
Optional Exercise: define a mergeSort method for the IntList
class. Start by partitioning the input list into two lists:
the elements with even indices and the elements with odd
indices. Your solution should be completely functional.
- Type Predicates and Casting
Do Finger Exercise 1.7.3.1.
- Helper Methods, Packages and Visibility
Do Finger Exercises 1.7.7.1 and 1.7.7.2.
- Program Testing with JUnit
Afternoon
- Interfaces
- Using Interfaces to Enforce Invariants
Afternoon:
- Implicit Polymorphism
- Using the command pattern to represent functions as data
- Parametric Polymorphism and Future Versions of Java
Afternoon Laboratory
Finger Exercise 1.11.1.