Dining Philosopher problem solved in java lanuage.