Our group went with writing to .OBJ files using the FileWriter class and info from this wikipedia article on the .obj file format
Oracle also has Documentation for the FileWriter class if you are unfamiliar. Writing to a .obj file is pretty much identical as writing to a .txt file, you just need to follow the .obj file format and specify .obj instead of .txt when creating the file (which you can do using the File class)