Your problem is with this statement:
for(counter = 0; counter <= actualWord.length(); counter++){
This is a very common mistake. String.length() returns the number of characters in a String....
Type: Posts; User: aussiemcgr
Your problem is with this statement:
for(counter = 0; counter <= actualWord.length(); counter++){
This is a very common mistake. String.length() returns the number of characters in a String....
The String.charAt() method returns a char. Since chars are primitives (and really just an int), you can use == instead of .equals(). I'm not 100%, but I would assume the preferred way of comparing...