The no-arg constructor is supposed to be there. This is my appended code. The user should be able to input the amount of data to fill the fields how many times they want. They should also be able to view the data that they entered. Here is the appended code. Thanks
class Book { int num; static String isbn; static String author; static String title; static double price; static int quant; public Book() { num=0; isbn="XXXXXX"; author="No Author"; title="No Title"; price=0; quant=0; } public Book(String isbn, String author, String title, double price, int quant) { Book.isbn = isbn; Book.author = author; Book.title = title; Book.price = price; Book.quant = quant; } public String toString() { String s = "ISBN: " + isbn; s += "\nAuthor: " + author; s += "\nTitle: " + title; s += "\nPrice: " + price; s += "\nQty in Stock: " + quant ; return s; } } public class Bookstore { static int num=0; public static void main( String [] args) { Book books[] = new Book; java.util.Scanner sc = new java.util.Scanner( System.in ); System.out.println("How many books would you like to record?"); num=sc.nextInt(); for (int i = 0; i < num; i++) { System.out.println("Book no. " + i + 1); System.out.print("Enter ISBN: "); Book.isbn = sc.nextLine(); System.out.print("Enter author: "); Book.author = sc.nextLine(); System.out.print("Enter title: "); Book.title = sc.nextLine(); System.out.print("Enter price: "); Book.price = sc.nextInt(); System.out.print("Enter quantity: ? "); Book.quant = sc.nextInt(); } for (int i = 0; i < num; i++) { System.out.println( books[ i ] ); } } }