Computer Science 252
Problem Solving with Java
Fall 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. Note that both the number of stains and the positions of the stains should be chosen randomly. 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 5 points of extra credit for more "interesting" stains.
Please demonstrate your program or submit only the file TShirt.java by email before you leave class. Email submissions should use a meaningful subject line, clearly indicating the course number and assignment name.
Modify the MovingFlags example to use enhanced for loops (i.e., the "for each" loops) wherever possible.
Please demonstrate your program or submit the Java files you modify by email before you leave class. Email submissions should use a meaningful subject line, clearly indicating the course number and assignment name.
No New Lecture Assignment
Finish up the in-class exercises if necessary, and get going on the new lab.