+ 1

Break command breaks which loop?

Suppose we write in while loop a function then simply use break then what break will do

4th Feb 2019, 11:43 AM
Jayesh@2806 [ROYAL CODER]
Jayesh@2806 [ROYAL CODER] - avatar
6 odpowiedzi
+ 1
Kartarsingh Yadav There is no way to cancel a break statement, but I have a solution... it is much easier to explain with a sample.
4th Feb 2019, 12:11 PM
Seb TheS
Seb TheS - avatar
+ 1
The point of this is to tell how to return to a loop, there are no strict magic portals back to a loop, but that could be performed with programmer defined functions. https://code.sololearn.com/cF1bx2uE6LRC/?ref=app
4th Feb 2019, 12:31 PM
Seb TheS
Seb TheS - avatar
0
Break command will make your program exit a current loop.
4th Feb 2019, 11:48 AM
EoflaOE
EoflaOE - avatar
0
Thnx bro but which command is there in java to re-enter in that loop again
4th Feb 2019, 11:48 AM
Jayesh@2806 [ROYAL CODER]
Jayesh@2806 [ROYAL CODER] - avatar
0
You are welcome
4th Feb 2019, 11:49 AM
EoflaOE
EoflaOE - avatar
0
Ok
4th Feb 2019, 12:37 PM
Jayesh@2806 [ROYAL CODER]
Jayesh@2806 [ROYAL CODER] - avatar