int getTimeCodeIndex(String section) { for (int i = 0; i < timeCodes.length; i++) { if (timeCodes[i].title == section) return i; } return -1; }