aspose file tools*
The moose likes Beginning Java and the fly likes Break Statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Break Statement" Watch "Break Statement" New topic
Author

Break Statement

rose hegde
Ranch Hand

Joined: Oct 22, 2003
Posts: 40
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?
Tom Wolve
Ranch Hand

Joined: Sep 22, 2003
Posts: 32
Hi,
usually 'return' is the 'right' way to exit a method in Java, throwing an exception is another.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Break Statement