while (firstNodeNeedsToGo(text))
{
removeFirstNode();
nodeRemoved = true;
}
can someone rewrite this while loop into an if - then loop or any other code you have , this will help greatly toward my upcoming test