Question: 0-1) Consider the class Pen. It has a color (String) and a length (double) and a price (double) the main class of another Test class,
0-1) Consider the class Pen. It has a color (String) and a length (double) and a price (double) the main class of another Test class, do the following: Ppen a file called "Peninfo" for reading Read repeatedyy unta the and of the file the information of Pens, each pen in a separate line n evely iteration, create an object of type Pen, and fill it with the information you road Bisploy the information about the Pen you created using the toString 0 method Pieplay 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
