corrected JMemoryTest.java