Write a Java program to do the following:
A Comma Separated Value (CSV) text file called books.txt is located in the local directory of your application. This file contains data for one book on each line. Each book contains the following data items: Author (String), Title (String), Year (int), and Price (double).
Read the text file and write the data as a serialized file called books.ser to the local directory (same as books.txt). Then, read the serialized file and output the data onto the console.
The spacing for the data is as follows: Author (20 characters), Title (25 characters), Year (8 characters), and Price (10.2 characters). Author, Title, and Year are left-justified, while Price is right-justified.
Sample output:
Author
Title Year Price
aaaaaaaaaa aaaa aa.aa
aaaaaaaaa XXXXXXXX yyyyyyy
XXXXXXXX yyyyyyy
XXXX yyyy
XXX.XX yyy.yy
We will use our own file to test the program. DO NOT SUBMIT your data file (books.txt) with your program.
Upload ONLY your Java file to Canvas.