Hello,
I have a while-loop and at a special condition, I want to restart the entire while-loop.
I tried but it does not work.
Is it even possible to restart a loop and if it is possible, how can I do this?
public void function()
{
while(//condition)
{
//do something
if(//special condition)
{
//interrupt the while-loop
}
//do something
}
}public void function()
{
loop:
while(//condition)
{
//do something
if(//special condition)
{
//interrupt the while-loop
continue loop;
}
//do something
}
}
