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

14th Feb 2018, 9:01 AM
[No Name]
[No Name] - avatar
3 Antworten
+ 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.
14th Feb 2018, 10:37 AM
Sad
Sad - avatar
+ 1
Thank you for helping.
14th Feb 2018, 5:03 PM
[No Name]
[No Name] - avatar
+ 1
Your welcome👍
14th Feb 2018, 5:22 PM
Sad
Sad - avatar