Hi,
I want to let the user give strings until he wants to stop. He can stop by just giving an empty string... BUT...
my while loop doesn't seem to work??
read String name;
while (name != ""
{
...
read strig name;
}
It doesn't work... I think there's an ENTER hidden, because the user has to press enter so, how can I delete the hidden enter or how do I alter my while loop to make this work ?
THANX SO MUCH,
math
I want to let the user give strings until he wants to stop. He can stop by just giving an empty string... BUT...
my while loop doesn't seem to work??
read String name;
while (name != ""
...
read strig name;
}
It doesn't work... I think there's an ENTER hidden, because the user has to press enter so, how can I delete the hidden enter or how do I alter my while loop to make this work ?
THANX SO MUCH,
math