So I am trying to create a Course Object which has the parameters of
String courseNum, String courseSect, String courseName, String courseGrade, double courseHours, String courseTerm
and sample input in the form of a string is the following
APSC1023 AA01B MECHANICS II B+ 5.00 2009/WI
the course number being APSC1023 couseNum and courseSect being AA01B and Mechanics and so on, the problems come into play with the way the fields are separated. I was thinking that since the only time there is only one space is in the name field (there is only 1 space) that you would use this as your case to not move onto assigning the next variable and do some sort of loop untill there is more then that 1 space. My question is how can you go about ignoring the other cases and only look after this one specific case.