Java E-notes
Friday, May 29, 2015
Break Keyword
package info.employee;
public class BreakKeyword {
public static void main(String[] args) {
int[] age = {10,20,30,40,50,60,70};
for (int x : age) {
System.out.println(x);
if (x == 50) {
break;
}
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment