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 trialVincent Karcz
307 PointsWhy does IgnoreCase not have to abide by camel case?
When using the if (noun.equalsIgnoreCase("dork")) In any other instance, not using camel case will break the code. Why is IgnoreCase an acceptian?
1 Answer
Luke Maslany
3,558 PointsThe purpose of the equalsIgnoreCase method is to compare the strings without consideration to capitalisation of the letters in that string. It is explicitly designed to be blind to camel case.
Apologies if I’ve misunderstood the question you are asking.
Vincent Karcz
307 PointsVincent Karcz
307 PointsThat answers the question, thank you Luke. As a follow up question, are there other instances of blinding camel case?