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 trialZachary Martin
3,545 PointsI made it through the challange but I'm still a bit confused
When we complete the challenge with the varibleX >='a' and or varibleX<= M does java actually know the alphabetal order of the letters whencompairing it the letter rage our varible falls in when we write this code?
1 Answer
Yanuar Prakoso
15,196 PointsHi Zach
To be honest I am not sure which part of challenge are you talking about since when I checked your challenge it is about counting letters in tiles of Scrabbles. Those challenge should not involving char or String type variable comparison. But let's just set those aside to answer your question is java recognize alphabetical order? The shortest answer is if you set it correctly yes Java can recognize alphabetical orders especially for char and String type objects.