看板 java 關於我們 聯絡資訊
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
PsMonkey:[舉手] 什麼時候可以開始報名上課 07/22 14:02