Since this array never changes, I think it would make more sense to declare it as a constant, and instead of calling MonthMapper(todayDate) up above, you could just call MONTH[todayDate.getMonth()] up above in getPath() (assuming you name your constant array MONTH).