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 trialalbert van Nijhuis
3,666 PointsQuiz error at 3/3
I'll get an error message at the last taks, but I don't see the problem.
my code:
String response;
do { response = console.readLine("Do you understand do while loops?"); } while(response.equalsIgnoreCase("no"));
console.printf("Because you said %, you passed the test!", response);
Could anyone help me out? Thanks!
2 Answers
Yanuar Prakoso
15,196 PointsHi Albert
I think you made a mistakes here in your code:
console.printf("Because you said %, you passed the test!", response);
You must use %s rather just % to represent string like this:
console.printf("Because you said %s, you passed the test!", response);
I hope this can help a little
blako heaud
140 PointsYou are missing "s". There should be %s but not only %.