need help with array

  for (j; j < 3; j++) {
    Serial.print(val[j]);
    Serial.print(" ");
  }

This part should not run until AFTER 3 buttons have been pressed.