I need to total the number of lines in a string. In my finite programming wisdom I know that charAt is a valid String method. However when I use it in the code below Eclipse keeps telling me it is not a valid method for my class. What gives?!?!?
Code:
public void addClassToSchedule(int index) throws TimeConflictException,
NameConflictException {
String list = allClasses();
int total = CourseList.howManyItems(all);
int linenumber = 0;
String c
for(int t = 0; t < list.length(); t++){
String c = list.charAt(t);
linenumber++;
}
}

