Dining Philosophers Problem in Java