exception handling and reprompting

Solutions on MaxInterview for exception handling and reprompting by the best coders in the world

showing results for - "exception handling and reprompting"
Gaël
08 Jul 2019
1boolean flag = false;
2while(!flag)
3{
4//make the loop break, if no exception caught
5flag = true;
6    try{
7
8    }
9    catch{
10       //make the loop repeat
11       flag = false;
12    }
13 }