Public class while loop example { Public Static Void loop untill five() { Integer counter=1; While(counter<=5) System.debug('counter:'+counter); Counter++; } } }
Standard input is empty
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)
./prog:3: parse error, expected '}'