Objectives:
- Collections
- Threads
- Timers
How to complete this HW:
1. First read and analyze each problem; then implement both problems in a project called HW3.
2. For each exercise, insert comments on ID, Name, and HW#.
3. Submit the zipped solution on BB link. The name of each file should be HW#_q#_myID_.java. For example, HW#_q1_u00011111.java (q? stands for question #).
Note on Honor Code: You must NOT look at previously published solutions of any of these problems in preparing your answers. You may discuss these problems with other students in the class (in fact, you are encouraged to do so) and/or look into other documents (books, web sites), with the exception of published solutions, without taking any written or electronic notes. If you have discussed any of the
problems with other students, indicate their name(s) in the comments section at the top of your program. Any intentional transgression of these rules will be considered an honor code violation.
1. Collections
Solve problem 18 on page 294.
2. Threads & Timers.
- Change the Wink animation such that it displays 10 smiley faces with different winking durations between 200 and 1000 milliseconds. In addition, allow for either of the two eyes to blink at random. You may also choose a random color for the face.
- Solve problem 16 on page 310.