Re: [問題] 有關於迴圈

看板java作者 (._.)時間19年前 (2006/07/22 13:54), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串3/6 (看更多)
http://java.sun.com/docs/white/langenv/Simple.doc2.html 2.2.6 No More Goto Statements Java has no goto statement. Studies illustrated that goto is (mis)used more often than not simply "because it's there". Eliminating goto led to a simplification of the language -- there are no rules about the effects of a goto into the middle of a for statement, for example. Studies on approximately 100,000 lines of C code determined that roughly 90 percent of the goto statements were used purely to obtain the effect of breaking out of nested loops. As mentioned above, multi-level break and continue remove most of the need for goto statements. === above? === http://java.sun.com/docs/white/langenv/Simple.doc1.html 2.1.5 Multi-Level Break blahblah.... ※ 引述《Kenny042183 (加油啊...)》之銘言: : 請問java有沒有類似C++裡面 : GOTO的功能呢 : 就是設定一個標籤 : 然後GOTO可以回到那個標籤去!! == 需要我開害死人不償命的英文課嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.25.148.49

07/22 14:02, , 1F
[舉手] 什麼時候可以開始報名上課
07/22 14:02, 1F
文章代碼(AID): #14mRs9QS (java)
文章代碼(AID): #14mRs9QS (java)