sorry about the assignment thread, I had an exam the day after and I was too lazy to take care of it but I managed in the end, thanks
small question:
lets say i input the word Hello, and I want to know if it has the letter z in this
I initiliaze int i=0, etc.
and then:
while(i<word.length())
...
...
why i<word.length and not <=??
If the word is hello, the index goes from 0 to 4 right? so it means my ''int i'' will never reach the last letter of the word?
thanks