java实验3.3(循环显示数字,在5的时候跳出循环)

时间:2014-01-31 13:56:05
【文件属性】:
文件名称:java实验3.3(循环显示数字,在5的时候跳出循环)
文件大小:3KB
文件格式:RAR
更新时间:2014-01-31 13:56:05
BreakLoop.java Write a Java program called BreakLoop.java that uses a for loop with the variable "count" and count 1 to 10.. Display "count=" each time you loop through. Break out of the loop at 5. At the end of the program display "Broke out of the loop at count = 5". Output: count = 1 count = 2 count = 3 count = 4 Broke out of the loop at count = 5
【文件预览】:
实验3.3
----bin()
--------BreakLoop.class(460B)
--------ForLoop.class(779B)
----.settings()
--------org.eclipse.jdt.core.prefs(629B)
----src()
--------BreakLoop.java(199B)
--------ForLoop.java(261B)
----.project(385B)
----.classpath(301B)

网友评论