@@ -0,0 +1,1054 @@
+/*%0A * #%25L%0A * ImageJ interactive debugging tutorials.%0A * %25%25%0A * Copyright (C) 2009 - 2015 Board of Regents of the University of Wisconsin-Madison%0A * %25%25%0A * To the extent possible under law, the ImageJ developers have waived%0A * all copyright and related or neighboring rights to this tutorial code.%0A * %0A * See the CC0 1.0 Universal license for details:%0A * http://creativecommons.org/publicdomain/zero/1.0/%0A * #L%25%0A */%0A%0Apackage net.imagej.trouble.hidden;%0A%0A/**%0A * STOP LOOKING AT THIS CLASS!! IT'S OFF LIMITS!%0A *%0A * @author Mark Hiner %3Chinerm@gmail.com%3E%0A */%0Apublic class NotALoop %7B%0A%0A%09public static void dontLoopForever() %7B%0A%09%09final long time = System.currentTimeMillis();%0A%0A%09%09// Wait for 7.5 seconds%0A%09%09while (System.currentTimeMillis() - time %3C 7500);%0A%0A%09%09// System.exit, because we're jerks.%0A%09%09System.exit(0);%0A%09%7D%0A%0A%09public static void dontLoopTwice() %7B%0A%09%09for (int i = 0; i %3C 4; i++);%0A%09%7D%0A%0A%09public static void dontLoopThrice() %7B%0A%09%09for (int i = 0; i %3C 3; i++);%0A%09%7D%0A%0A%09public static void loopForever() %7B%0A%09%09boolean loop = true;%0A%09%09while (loop) %7B%0A%09%09%09loop = false;%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create NotALoop black box