

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


break;
break;
Example
Example
public
public class
class Test
Test {
public public staticstatic voidvoid mainmain((StringString argsargs[])[]) {{
int
int []
numbers
for
for (
int
int x
x :
numbers
numbers )
if
if (
x
break break;;
System
System .
out
out .
print (
x
x );
System
System .
out
out .
print (
"\n"
"\n" );
Output
Output
Live Demo
Live Demo