Question: [CLO-11 Consider the class Pen. It has a color (String) and a length (double) and a price (double) In the main class of another Test
[CLO-11 Consider the class Pen. It has a color (String) and a length (double) and a price (double) In the main class of another Test class, do the following: 1. Open a file called "Peninfo for reading 2. Read repeatedly until the end of the file the information of Pens, each pen in a separate line 3. In every iteration, create an object of type Pen, and fill it with the information you read 4 Display the information about the Pen you created using the toString() method 5. Display the total price of all Pen objects
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
