Create EncodeTrainFile.java