But do remember a semicolon after the return ;)
/Per W
On Thu, 1 Jun 2006, David Chu wrote:
> umm...
>
> Just put return into your code, and it'll work.
>
> ex.
>
> void doSomething()
> {
> if (logicNotMet)
> return
>
> else
> // do something;
> }
>
> On 6/1/06, Erik Schmidt <esc...@gm...> wrote:
> >
> > is there a way to return or break a method of type void without
> > throwing an exception?
|