Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.