Java code for SEII