public class while loop Example
{
Public static void loop until five(){
Integer Counter=1;
while (counter <=5){
System.debug ('counter:'+ counter)
Counter ++;
}}}
Object: UndefinedObject error: did not understand #while
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject class(Object)>>doesNotUnderstand: #while (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)