previous | start | next

Reading Input Values

General pattern:
boolean done = false;
while (!done)
{
String input = read input;
if (end of input indicated)
done = true;
else
{
process input
}
}

"Loop and a half"



previous | start | next