Changed method names to java