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

Do while Loops AGAIN I DONT GET IT

Will someone just please clarify this code challenge for me?????? I am wasting a lot of time not getting this, it’s already been a month and I haven’t been able to progress through the java course. Please just make this as simple and concise as possible and really I would just like the code or the code with other examples. PLEASE HELP ME I DONT GET THIS STUFF AT ALL I JUST NEED TO PASS THIS CHALLENGE!!!!!!!!

Example.java
String response = console.readLine("Do you understand do while loops?");
do {
  console.readLine

1 Answer

Steven Parker
Steven Parker
231,184 Points

First, you can continue your progress just by setting this course aside and starting the next one in your track (or of your choice from the library). After some additional course work, you can always return and finish this quiz later.

But it looks like you've passed task 1. Here are some hints for task 2:

  • to "continually prompt", the readLine will need to be inside the loop
  • only the variable declaration will be before the loop
  • when comparing a literal with a string variable, the literal value must be enclosed in quotes (like: "No")
  • remember to use the "Preview" button to get more details about compiler errors

Hey! Thanks a lot!