Java - stop function from its normal run

zurfyx

Is there any easy way such as break for whiles to stop/skip a running function?

public void a(){
   do_this();
   //break the function here
   do_that(); //do not load this
}

What I want to approach could be done with boolean and if statements as well, but I was wondering if there was some shortcut command in order to do this.

PC.
public void a(){
   do_this();
   if(1==1)
       return;
   do_that(); //do not load this
}

Just curious, why do you want to write such a code?

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to run a normal Java Program from a Java Applet?

From Dev

If i call a function of my main class in java, from other object which has its own thread, will this function run in separate thread?

From Dev

Stop function from being executed after run once

From Dev

How to stop Qt concurrent recursive run function from other thread?

From Dev

How to stop the normal force from being too small on a 2D rigidbody? (Java 2D)

From Dev

How to stop/exit a sub-classed method execution from its super class method in java

From Dev

Can project Tango java run on normal tablet

From Dev

Migrating to Arrow function from Normal function JS

From Dev

Stop IIS website from its own thread

From Dev

Stop it from Looping in Java

From Dev

function run from a program in a different directory can no longer find its file

From Dev

How can a run a compiled java or c program from a shell file from outside its directory?

From Dev

How can I create a program in Java that is able to alter its own source code, or a mathematical function that it is then to run?

From Dev

Calling django template tags from a normal function

From Dev

JavaScript Run function only if its the last time its being called

From Dev

Java implementing scheduler errors on normal function

From Dev

Java Agent doesn't run in its own thread when called from Lotus Script

From Dev

Is it possible to stop/run Form workflow from a controller?

From Dev

Run function from variable

From Dev

stop function from another function in jquery

From Dev

Stop Javascript Function execution from another Function

From Dev

How to stop running timeout jquery function on click and run new function?

From Dev

Access vars from factory in its run() method

From Dev

Run a python script from its icon in linux

From Dev

run a URL from its own server

From Dev

How does java run its applets in the browser?

From Dev

Stop adb screenrecord from java

From Dev

Stop sound from playing in Java

From Dev

Stop sound from playing in Java

Related Related

  1. 1

    How to run a normal Java Program from a Java Applet?

  2. 2

    If i call a function of my main class in java, from other object which has its own thread, will this function run in separate thread?

  3. 3

    Stop function from being executed after run once

  4. 4

    How to stop Qt concurrent recursive run function from other thread?

  5. 5

    How to stop the normal force from being too small on a 2D rigidbody? (Java 2D)

  6. 6

    How to stop/exit a sub-classed method execution from its super class method in java

  7. 7

    Can project Tango java run on normal tablet

  8. 8

    Migrating to Arrow function from Normal function JS

  9. 9

    Stop IIS website from its own thread

  10. 10

    Stop it from Looping in Java

  11. 11

    function run from a program in a different directory can no longer find its file

  12. 12

    How can a run a compiled java or c program from a shell file from outside its directory?

  13. 13

    How can I create a program in Java that is able to alter its own source code, or a mathematical function that it is then to run?

  14. 14

    Calling django template tags from a normal function

  15. 15

    JavaScript Run function only if its the last time its being called

  16. 16

    Java implementing scheduler errors on normal function

  17. 17

    Java Agent doesn't run in its own thread when called from Lotus Script

  18. 18

    Is it possible to stop/run Form workflow from a controller?

  19. 19

    Run function from variable

  20. 20

    stop function from another function in jquery

  21. 21

    Stop Javascript Function execution from another Function

  22. 22

    How to stop running timeout jquery function on click and run new function?

  23. 23

    Access vars from factory in its run() method

  24. 24

    Run a python script from its icon in linux

  25. 25

    run a URL from its own server

  26. 26

    How does java run its applets in the browser?

  27. 27

    Stop adb screenrecord from java

  28. 28

    Stop sound from playing in Java

  29. 29

    Stop sound from playing in Java

HotTag

Archive