Added java file for FILE IO