I have been at this for two days now. When I complie I get: cannot find symbol method(java.lang.String)
I also found out that the reason that I am getting that complier error is because the argument needs to be a courseSection object. Can someone point me in right direction on how to convert the String into a CourseSection object? Thanks.
Scanner fileReader = new Scanner(
new FileInputStream("class-schedule.txt"));
ArrayList<CourseSection> schedule = new ArrayList<CourseSection>();
//for(int index = 0; index < schedule.size(); index++)
while(fileReader.hasNextLine())
schedule.add(fileReader.nextLine());