CS51 - Fall 2009 - Lecture 11
More complex while loops
Knitting
can nest while loops
check that understand what happens when various lines in code are removed
BouncingBasketBall
Note use of two while loops within the main while loop in the run() method
See how sounds can be incorporated
Note how
moving
instance variable in
Dribbler
class is used so that the
BouncingBBall
class can signal that the ball can stop being dribbled.
Discussion of keyword null and of how null pointer exceptions are caused.