Java code for PLMCE talk