Forums Register Login

Break Statement

+Pie Number of slices to send: Send
Can neone tell me how to exit from a function in java?break statement is not working...!!
Apart from return statement is there any other way?
+Pie Number of slices to send: Send
Hi,
usually 'return' is the 'right' way to exit a method in Java, throwing an exception is another.
+Pie Number of slices to send: Send
What do you mean by function? Can you post an example, as best as you have so far, of what you're trying to do?
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 671 times.
Similar Threads
Can someone please explain the following code to me...
if() condition exit
break statement
Doubts about break
! unreachable
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:00:54.