What should be done to exit the cycle without waiting for the completion of the iteration counter to the maximum value in Java?
1
Expert's answer
2010-09-03T04:36:57-0400
You can use the command «break» or create a new exception, but then you have to add the index «throws» and the type of the exception in the header of the method that declares the cycle.
Comments
Leave a comment