有时标记的中断或继续可以使代码更具可读性.
OUTERLOOP: for ( ;/*stuff*/; ) { //...lots of code if ( isEnough() ) break OUTERLOOP; //...more code }
我想知道标签的常见惯例是什么.全部大写?第一次上限?
java convention label
convention ×1
java ×1
label ×1