changing to java