I've read some tutorials which using this syntax in Java, but I don't know what it's mean?
newNumber:while (1 <= 500) {
// do something
}
I don't understand what newNumber:while
mean and I can't find it on oracle documentation.
I've read some tutorials which using this syntax in Java, but I don't know what it's mean?
newNumber:while (1 <= 500) {
// do something
}
I don't understand what newNumber:while
mean and I can't find it on oracle documentation.
newValue is label here. You can use it with break and continue statement. It becomes relevant for nesting loops when you want to jump from inside the nested loop.