You need to see how your code is executing by adding some printlns to see what values are being used. For example print out the value of the char returned by chatAt() to see what your code is looking...
Type: Posts; User: Norm
You need to see how your code is executing by adding some printlns to see what values are being used. For example print out the value of the char returned by chatAt() to see what your code is looking...
How does your program count the outs?
What is different about the line for Willy Wonk and the other lines where the code works?
Why does your program work for the other lines?
What is your logic...
Can your code detect what you don't want to count and not count it?
Specifically what variables are being incremented when they should not be?
What condition or data contents allows that to...