Fixed up the java version