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

foxtails
foxtails
3,655 Points

What is wrong?

This is second challenge I can't seem to pass. My preview is not showing anything, so I don't even know where to look for mistake.

Example.java
// I have initialized a java.io.Console for you. It is in a variable named console.
String response = console.readLine("Do you undertand do while loops?  ");

3 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey there...

The spaces at the end actually will not affect the outcome of the challenge's task. The problem you are experiencing is actually just a typo with the word 'understand' inside of the string... you're missing the "s" :)

Keep Coding! :dizzy:

Interesting :)

Didn't know that!

Code challenges are super duper picky.

I believe that you have two spaces at the end of your string, try using just one. :)

Example.java
// I have initialized a java.io.Console for you. It is in a variable named console.
String response = console.readLine("Do you undertand do while loops? ");

Good luck! ~alex

foxtails
foxtails
3,655 Points

Thank you both. It is always something really stupid, I'm really grateful to you both for answering! Passed the challenge!