作者ogamenewbie (._.)
看板java
标题Re: [问题] 有关於回圈
时间Sat Jul 22 14:00:06 2006
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
1F:推 PsMonkey:[举手] 什麽时候可以开始报名上课 07/22 14:02