Java 變相實現 goto

比如向後跳轉

    do_something();
    goto there;
    do_something();
there:
    do_something();


變相實現

do {
    do_something();
    break;
    do_something();
} while(false);
do_something();
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章