This program I\'m making for a COSC course isn\'t compiling right, I keep getting the error:
Exception in thread \"main\" java.lang.StringIndexOutOfBoundsException:
Removing the equal sign should fix that.
while (count < input.length()) {
and since you want to get a single character, you should do this:
substr(count,1)
because the 2nd parameter is actually length, not index.