0

Why is first: used in this code ? What does it mean? Is it a keyword or so ? Explain its usage

https://code.sololearn.com/cA0cLJNQRECA/?ref=app

5th Jan 2020, 8:05 AM
Ayush Pandey
Ayush Pandey - avatar
2 ответов
+ 5
Since "goto" is a java keyword but yet it is not implemented in Java, so there must be something to replace it. This is kind of an example for that. The first: is a label and when you say continue first; the control is moved back to the label and execution starts from the top. Edit: You can remove the label to see the difference in result you get.
5th Jan 2020, 8:16 AM
Avinesh
Avinesh - avatar
0
Avinesh ~ swim ~ can it be replaced by other word like identifiers means it can be first second a b anything x y z like that?
5th Jan 2020, 8:32 AM
Ayush Pandey
Ayush Pandey - avatar