changed to java language