return (x >= 0 && x <= 7) ? arrayList[x] : null; if (x >= 0 && x >= 7){ return arrayList[x]; } else { return null; }