摘要
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.
出处
《计算机光盘软件与应用》
2011年第1期45-46,共2页
Computer CD Software and Application