Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Objects (Retired) Creating the MVP Current Progress

Christopher Borchardt
Christopher Borchardt
2,908 Points

only one case of a letter

ok, I am not sure if I'm getting ahead of the lessons or not.

I used "StarWars" as the word rather than treehouse, When I run the code and put 's' down as the guess, only the first S is displayed. Is there something wrong in my code that it only displayed the first instance of the guessed letter? or is that a functionality that will be addressed in a later video?

https://w.trhou.se/6vlt3zx27m

Christopher Borchardt
Christopher Borchardt
2,908 Points

never mind, i figured it out. the problem is it counts 'S' as a different answer as 's' so it only showed one. have to make the word all lower case.

Harry James
Harry James
14,780 Points

Hey Christopher Borchardt,

Glad you got the problem sorted :) If you wouldn't mind just moving your comment to an answer and setting it as the Best Answer, then it'll let other users know that this problem has been solved.

1 Answer

Christopher Borchardt
Christopher Borchardt
2,908 Points

never mind, i figured it out. the problem is it counts 'S' as a different answer as 's' so it only showed one. have to make the word all lower case.