switch to Java