i don't understand the real problem..

public class Locker { private static boolean locker[] = new boolean[1001]; public static void main(String[] args) { int n, v, s, opened=0, closed=0; boolean temp; //person 1 opens all lockers: n = 1; while (n<=1000) { locker[n] = true; n++; } //person s reverses every s(th) locker: v = 2; for(n=1;n<1000;n++) { s = n+1; v =s; while (h<=1000) { temp = !locker[h]; locker[s] = temp; s += v; } } System.out.println("Opened: " ); } }