Hi there, I am trying to follow a spec to create a library which displays a title, a list of array items (authors) and the price.
The code below is what I have so far... The file Tree looks like this.
library
JRE System Library
src
library.client
Main.java
library.model
Books.java
Any help would be appreciated.
---------------------------------------------------
---------------------------------------------------package library.client; public class Main { public static void main(String[] args) { } }
package library.model; public class Book { // Declaring Variables private String title; private String[] authors; private double price; // Constructor public Book(String title, String[] authors, double price) { this.title = "Book Title"; this.authors = new String[] {"Theresa.M", "Jeremy.C", "Boris", "BigLiz", "Phillip"}; this.price = 15.55; } // Getter & Setter Methods public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public double getPrice() { return price; } public void setPrice(double price) { this.price = price; } }