Computer Science 252
Problem Solving with Java
Spring 2015, The College of Saint Rose
Agenda
Modify the Drag10Shirts example so that each TShirt object created has somewhere between 2 and 6 "stains" placed randomly on it. Each stain is a single graphics primitive (e.g., a FilledOval), and those stains are stored in an ArrayList within that TShirt, so that the stains move with the TShirt. You can earn full credit if all stains are the same size, color, and shape, but can earn up to 10 points of extra credit for more "interesting" stains.
Please submit only the file TShirt.java in Submission Box under "InClass20" before you leave class.
Modify the MovingFlags example to use enhanced for loops (i.e., the "for each" loops) wherever possible.
Please submit the Java files you modify in Submission Box under "InClass20-2" before you leave class.
No New Lecture Assignment