摘要
goto语句它给程序设计带来方便灵活的同时,使程序流程变得混乱不堪。Java对语言框架做的重大改进之一就是抛弃了goto语句,取而代之的是两条特殊的流程控制语句——break语句和continue语句。本文具体分析了在什么情况下,如何使用这两种流程控制语句。
goto statement it is convenient programming flexibility at the same time,the program flow to become chaotic.Java frameworks of language is one of the major improvements abandoned the goto statement,replaced by two special control flow statement-break statement and continue statement.This detailed analysis that how to use both flow control sentence under what kinds of case.
出处
《计算机光盘软件与应用》
2010年第10期50-51,共2页
Computer CD Software and Application
关键词
流程控制
循环
分支
BREAK
CONTINUE
Wang Lili,Chu Mei,Shi Hongyan (Department of Basic,Xuzhou Air Force College,Xuzhou221000,China) Process control
Cycle
Branch
Break
Continue Process control
Cycle
Branch
Break
Continue