Creating the Dining Philosophers problem in java.