Question about while loops and strings

How do I use a string in my while loop?I am asking the user a question, and using that feedback in a yes or no question.If you could, please type an example of such code. Thanks!
[199 byte] By [damnconfuseda] at [2007-10-3 6:02:26]
# 1
* I am using their feed back, "yes or no" in the while loop is what I mean.
damnconfuseda at 2007-7-15 0:44:39 > top of Java-index,Java Essentials,New To Java...
# 2

I have no idea what you're asking. But I'll take a guess. You want to keep going until they enter "no"?

String keepGoing;

do {

some stuff

keepGoing = .... ; // read input with Scanner or whatever

} while (!keepGoing.equals("no")); // or equalsIgnoreCase("no") to allow NO, No, nO.

jverda at 2007-7-15 0:44:39 > top of Java-index,Java Essentials,New To Java...