how can we use the break statement in java?

class Arithmetic2  

{

public static void main(String[] args) 

{

FIRST:for(int j=1;j<3;j++)

SECOND:for(int i=1;i<10;i++)

{

if(i==4)

break FIRST;

System.out.println("the value of i="+i);

}

 

}

}

 

output

the value of i:1

the value of i:2

the value of i:3