Class 2 |
Intermediate Java 30-IT-397 |
|
Open Lab Exercises, Class 6
-
We should cover threads and sockets this class. We will have a little
time for open lab at the end, but probably not as much as usual.
Depending on the time, these are the exercises we may do:
-
Threads:
-
Use your Programming Assignment 1. Save the ExpireDate as a Date
field, and set it automatically to fifteen seconds after the Widget was
entered. Then, have a thread go through your program and remove expired
Widgets from the JList. This would require a significant amount
of time, so this is the least likely lab. We'll see how much time
remains at the end of class.
-
Networking:
-
Try the exercises in red on slide 7702. We'll
almost definitely do this.
-
Work with a partner to develop a client/server app like the one on slide
7704. One person should develop the client,
the other the server. Use ping to find the address of the server.

Created by: Brandan Jones
December 17, 2001