Java Java Basics Perfecting the Prototype Looping until the value passes

Response

Please help can't pass this, I don't know why

Example.java
// I have initialized a java.io.Console for you. It is in a variable named console.
String response = console.readLine  ("Do you understand do while loops?") ;
do {
response = console.readLine ("Do you understand do while loops?"); }
while (response.equalsIgnoreCase("No"));
console.printf ("Because you said response , you passed the test!");

2 Answers

akiva grobman
akiva grobman
4,227 Points

The last line should look like this console.printf ("Because you said %s, you passed the test!", response);

Thanks