0
I'm trying get input from user and seeing if the word they enter and index is true.
This is example of what I'm trying to make this program do. Enter a word: puppy Enter index: 5 5 is not a legal index for "puppy". //if the user enter 4 I would print "y" //I know word.chaAt is at wrong place but I'm not sure how to use it. if you can post the debug code and show what I miss that would be great. https://code.sololearn.com/cxdr7994FqU5/?ref=app
3 Réponses
+ 1
https://code.sololearn.com/c8a9fyYLfLQ9/?ref=app One error was that you named String with s instead of S(capital s). and I replaced word.charAt with %s.
+ 1
Thank you for helping.
+ 1
Your welcome👍