The explanation of the answer says below
String String = ""; //This is valid. // This ok for me - Amit
String : for(int i = 0; i< 10; i++) //This is valid too! // This is giving compile time error
{
for (int j = 0; j< 10; j++){
if ( i+ j > 10 ) break String;
}
System.out.println( "hello");
}
I am getting issue with 'String' label, It is giving me compile time error
qid: enthuware.ocajp.i.v8.2.1010
Moderator: admin
-
- Posts: 2
- Joined: Fri Aug 15, 2014 12:58 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: qid: enthuware.ocajp.i.v8.2.1010
You must be making a mistake. Copy paste the code and compile it from command line. It will compile fine.
Who is online
Users browsing this forum: No registered users and 10 guests