This assignment is based on Chapter 17- Files and Streams
Create an ItemRecord class. This class must beserializable (implements serializable).
The class will have 4 fields (the fields must be declaredprivate!):
itemnumber String
cost double
quantity int
description String
Create a constructor with 4 parameters (itemnumber, cost, quantity, description).
Create get/set methods for all thefields.
Override the toString methodto display a nicely formatted line with the values of all thefields. Use get methods to retrieve the values ofthe fields.
Use this format: ItemNumber: XXX Cost:X,XXX.XX Quantity:X,XXX Description:XXXXXXXXXXXXXXXXXXXXX
Create a text file with a minimum of 5 records.Name the file “ItemRecord_text.txt”. Use NotePadto create the file.
Here is a sample data record: 12313.75 100
PayPal Gateway not configured
PayPal Gateway not configured