GDawson
GDawson

Reputation: 337

Stop before the end of a method and call the other methods

I created a method:

public void baseOblo ()

The method and I started doing the tests, calculations ...

As a result do to stop the method is invalid, or not to continue the remaining codes and the method call another method public void baseCirc ()

?

Thank you

Upvotes: 1

Views: 2112

Answers (1)

dave.c
dave.c

Reputation: 10908

Do you mean that you reach a point in baseOblo where you no longer want to continue processing, and instead want to call a new method? If so:

public void baseOblo (){

    // do stuff

    if(someCondition == true){
        baseCirc();
        return;
    }

     // do other stuff

}

Upvotes: 3

Related Questions