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

Popular posts from this blog

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -