I have a program that prints out the characters of a string using a for-loop. It must also print the same characters in reverse, which is where I\'m having problems. Can someone
for(myAnimal.length(); i > -1; i--){ ^
this doesn't do anything. you fetch the value and then throw it away.
Did you mean i = myAnimal.length() - 1 ?
i = myAnimal.length() - 1