memo-class java