"library.dat" and saving to "oldBooks.txt" by giving appropriateįeedback to the program user in the system console. That handle problems that may come in reading from the file Your program must have IO exception handling In the resulting text file the info of each Book willīe on a different line. Whose year is less than 2000 back to a text file called That, the main then writes the year and the title of each Book object The class will have main method that reads Book objects from this fileĪnd stores up to 20 of those Book objects in an array. Is a file called "library.dat" which contains several Book objects. That can be saved without problems into a file.įindOldest class: For the FindOldest class, you will assume that there You need to make sure that any object of this class You have to create the appropriate getter and I am using Apache Netbeans.īook class: This class has the following private data members: I am having some difficulties to convert the ".dat" file into ".text" file in my java.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |