Question: i want code in java you can create a book class on your own, whatever you feel like. Question 105 (12 points) In this problem,
Question 105 (12 points) In this problem, you will work with pure Java arrays whose data is of type Book. You should perform the steps in order since each step may (very likely will) affect a subsequent step (total 12 marks). (A) Declare an array reference variable named books of type Book (class definition below) and initialize this array reference to NULL [3 marks). (B) Create a new array object of type Book with a length of 10, and assign this new array object to the array reference variable you defined in (A) called books. [3 marks] (C) Write a code segment that will use a while-loop and the definition of the Book class, to create 5 Book objects and assign them to the array books you created above. The books to the first five references. [4 marks] (D) What is the valid index range for the array books? [2 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
