dinning philosophers problem(Java)