how to read two text file into a class object and write them to one text file?

不问归期 提交于 2021-02-11 15:11:15

问题


How can I read File 1 and File2 from the below diagram into class objects and write all the instances of the class into a new File containing all the attributes of both File 1 and File 2? I am taking all attributes as an instance of student class as shown below. How to read both file 1 and file2 into one file either as file 3, file 4, or file 5. which format is more feasible to store those attribute, ArrayList or hashmap, and how

来源:https://stackoverflow.com/questions/64858171/how-to-read-two-text-file-into-a-class-object-and-write-them-to-one-text-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!