// Memory overflow test import josx.platform.rcx.*; import josx.util.Assertion; public class Test13 { public static void main (String[] argv) { // This statement is to ensure that static // initializations in LCD are performed // before we run out of memory. LCD.showNumber (0); int i = 0; try { for (;;) { i++; new Object(); } } finally { LCD.showNumber (i); LCD.showProgramNumber (5); for (int k = 0; k < 50000; k++) {} } } }