Computer Science 252
Problem Solving with Java
Spring 2015, The College of Saint Rose
Lecture 10: Repeated Graphical Components; Introduction to Active Objects
Date: Thursday, February 12, 2015
Agenda
- Announcements
- Exam next Tuesday, during class
- today's new topics are not covered
- additional good practice: BDM Exercise 6.9.1,
p. 178. Also write a class ManTest that extends
WindowController that demonstrates at least 3 of the methods
of Man as well as its constructor. (you do not need to
turn this in)
- review time Monday at 8:30 PM, Albertus 205
- Lecture 8 assignment recap
- Lab 4: Spring Flowers designs
- Using loops with graphical objects
- Introduction to active objects
Lecture 10 Assignment
Due at the start of class, Thursday, February 18.
Please submit answers to these questions
in Submission
Box under "LA10" or in hard copy by the
start of our next class. We will discuss these questions at the
start of class, so no late submissions are accepted. Please be sure
that your name is clearly indicated in all submissions.
Write a loop that would draw the following "staircase" on the canvas
(5 points):
Terminology
- repetition
- while loop
- for loop
- infinite loop
- passive objects
- active objects
- thread of control
Examples