@@ -0,0 +1,1112 @@
+/*%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 ObjectAnalyzer %7B%0A%0A%09public static boolean processElementAtIndex(final Object%5B%5D myArray,%0A%09%09final int i)%0A%09%7B%0A%09%09final Object o = myArray%5Bi%5D;%0A%0A%09%09if (o == null) %7B%0A%09%09%09System.out.println(%22Something is wrong with the %22 + (i + 1) + suffix(i +%0A%09%09%09%091) + %22 object... :(%5Cn%5Cn%22);%0A%09%09%09return false;%0A%09%09%7D%0A%0A%09%09return true;%0A%09%7D%0A%0A%09private static String suffix(int i) %7B%0A%09%09i = i %25 10;%0A%0A%09%09String suffix = %22th%22;%0A%09%09switch (i) %7B%0A%09%09%09case 1:%0A%09%09%09%09suffix = %22rst%22;%0A%09%09%09%09break;%0A%09%09%09case 2:%0A%09%09%09%09suffix = %22nd%22;%0A%09%09%09%09break;%0A%09%09%09case 3:%0A%09%09%09%09suffix = %22rd%22;%0A%09%09%09%09break;%0A%09%09%7D%0A%09%09return suffix;%0A%09%7D%0A%0A%7D%0A

Create ObjectAnalyzer black box