Skip to content

Small Java module for breaking infinite loops/recursions using exceptions.

License

Notifications You must be signed in to change notification settings

sierawski/loop16

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

loop16

Small Java module for breaking infinite loops/recursions using exceptions.

##Example import pl.rrbs.loop16.StaticLoopBreaker;

public class Main {
	public static void main(String[] args) {
		int i = 0;
		while(true) {
			StaticLoopBreaker.silentTick(Main.class, 9);
			System.out.println(++i);
		}
	}
}

##Disclaimer Using exceptions to break out of loops or recursion is not considered to be a good practice. Always check whether changing loop condition or other parts of code won't be a better answer.

About

Small Java module for breaking infinite loops/recursions using exceptions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages