Java implementation of the Dining Philosophers problem