Create Java code