java - What is the meaning of 'first:{}' block and how can we use it in over program? -
this question has answer here:
i new java , see complicated code while see solution program on net
int a=5; int b=10; first:{ second:{ third:{ if(a==b>>1){ break second; } system.out.println(a); } system.out.println(b); }
can explain me meaning of type of code , how use in program , cant find type of code in java book please me in advance
there problems code. have 4 '{' should have 4 '}' or won't compile.
break typically used out of loops, in case taking inside 1 label outer label. if there code outside of if statement, inside of third label, skipped because of break. in case not print a.
Comments
Post a Comment