the error i get is SEVERE: Allocate exception for
servlet cs320Homework1.servlet.CourseDisplay
java.lang.ArrayIndexOutOfBoundsException: 2
at cs320Homework1.servlet.CourseDisplay.init(CourseDisplay.java:47)
hmm alright quick question. my contructor takes in 4 things.
I dont use the id in my course display. i still have to account for it right , even though i dont use it. my text file only has 3 columns ( code,title,prereq). so i would still count it as a limit of 4?
my thinking with the limit was that i have 3 columns i want to display(code,title,pre)
String[] eachCourse=string.split(",",3);
and here im expecting my prerequisites to be in the 3rd element of the array.
String[] prereq = eachCourse[2].split(" ");
ehh im all confused with the out of bounds stuff , just trying to think it out.