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
Nick Vitsinsky7,246 Points
I'm lost with Character.isLeter(letter); letter = validateLetter(letter);
Hey, I'm lost with Character.isLeter(letter); letter = validateLetter(letter); From where did we take Character to apply isLetter to it? We never declare Character before. The same is to validateLetter. Are Character and validate something that exist in java on their own and we don't need to declare them? and if yes, in validateLetter - did we declare Letter anywhere before, or Letter is also exist in java without declaring it. Or maybe it is taken from private char validateGuess(char letter) and simply written in camelCase? Totally confused right now.
Q: "Are Character and validate something that exist in java on their own and we don't need to declare them?"
Character is a class in java.lang. One of its methods is isLetter().
validateLetter() was a mistake. The private method he wrote was validateGuess(). He admits the mistake around 10:44