Question: 1 Bock 74 Create a Book class with attributes author istring), title (Sting) Dong Make sure you create ALL modities and accessors, and tostrane that

1 Bock 74 Create a Book class with attributes author istring), title (Sting) Dong Make sure you create ALL modities and accessors, and tostrane that will put the chos, the cold, and the price Create a compare to that will copate coording to the author 4 5 6 7 @ 5 10 11 You have been given an input file called book.txt In the input file there are three is for each book The author in on the titat line, the title on the second line and the price on the third line Write a program to breate an array that will hold a maximum of TEN Box obye this means you are or less 10 Get input from the file, create Book obiect and put them into the array Output the artay IN REVERSE 12 13 14 15 16 17 18 19 20 21 22 Note: You have been given two input. You don't know which in Verify your program works with both by gut aterate the name you/etch package test numi: import java.io.File: import java.10.FileNotFoundException import java.util. 24 public class Test2Numi 26 27 public static void main(String) args) Scanner fileInput-nulis Filet - new File("htt"> 25 31 32 fileInput new Scanner (1) 34 catch (FileNotFoundException e) 27 39 40 41 42 1 2 3 4 To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools Templates * and open the template in the editor. 5 6 package test2numl; 8 public class Book { 9 10 11 12 13 14 15 16 17 18
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
