Based on this answer from the famous Jon Skeet, you can assign a name to the external cycle, and use break
for Escape out of the external cycle:
void Metodo() {
// mas código
ciclo_externo: // le asignas un nombre al ciclo aquí
do{
do{
if(){
// esto te saca de ambos ciclos de una vez.
break ciclo_externo;
}
}while();
}while();
// mas código
}
Or, probably the best option is to move the 2 cycles to a different method so you can use return
without problem:
void Metodo() {
// mas código
ejecutarCiclos();
// mas código
}
void ejecutarCiclos() {
do{
do{
if(){
return;
}
}while();
}while();
}