Convert to Java