public class DiningPhilosophers { public static void main(String[] args) { final int PHILOSOPHERS = 5; int[] state = new int[PHILOSOPHERS]; for (int id = 0; id < PHILOSOPHERS; id++) { (new Philosopher(id, state)).start(); } } }