I don’t understand why but topo (table of ints here) is full of zeros except for the first position which is correct… Can someone help me understand what I did wrong please ?

int [] topo = new int[7000];

for (int i = 0; i < surfaceN; i++) {

int landX = in.nextInt();

int landY = in.nextInt();

topo[i] = landY;

}