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 Basics Perfecting the Prototype Looping until the value passes

Craig Morse
Craig Morse
427 Points

Knock knock exercise

I need a hint on how to complete this exercise. In the lesson with Dennis we learned how to exclude words. In the exercise we will only accept one answer (banana). So without listing every single letter combination except for banana what tool can use to only accept banana?

1 Answer

Hi Craig!

Maybe you could try passing the word you want ignoring to 'equalsIgnoreCase' method and seeing how that works for you? Tell me if you have any problems!

-Luke