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

Problem with Do While loops quiz

When I hit check work it say that step 1 is now failing. What do i do to fix this?

Example.java
// I have initialized a java.io.Console for you. It is in a variable named console.

String response;
do{
   response = console.readLine("Do you unserstand do while loops?");
}while (response.equals("no"));
Tyler Combs
Tyler Combs
15,525 Points

Hm, Im not quite sure. I just went through the challenge the only thing I did differently from you is type

while (response.equalsIgnoreCase("no"));

Not sure if that will affect the outcome for you though. :/

2 Answers

Thanks for taking a look, Tyler. When I hit the recheck work button I get the error "Oops! Looks like task 1 is no longer passing".

Tyler Combs
Tyler Combs
15,525 Points

Lol. I think I see what it is. Check the spelling of "understand".

Well.. I feel like an idiot. I was about to throw my computer off a building. Thank you for the help.

Tyler Combs
Tyler Combs
15,525 Points

Don't sweat it, Reed, its always the small things! Lol good luck as you move on and have fun like I am!