Changed scala file to java file

issue 285
Merge pull request #292 from riteshmodi/master

Changed scala file to java file