Matt Road wrote:Yeah! SOlved!
Well done!
Tip for the future: if you want to check a
String that might be null against a literal, swap the
test around, viz:
while ( cs.hasNext() && !"ex".equals(c) ) { ...
I suspect that would also have solved your problem in this case.
Winston