From: Dan Doel Date: 2003-08-08T05:15:36+09:00 Subject: Re: Elegant solution for a loop-break problem meinrad.recheis wrote: > why not? (i dont understand your indignation) because something is > intended for something special, it does not mean that it isnt good for > something else. > however, in java it is the only way to escape a nested loop. > > -mr Actually, in Java you can do this (or at least, you could in the past): void foo() { for(int i = 0;i < 100;i++) { for(int j = 100;j > 0;j--) { if(i == j) break bar; } } bar: } As long as you don't mind using labels.