Changed scala file to java file

issue 285