Book - { return ISBN; } Book one = new Book[20]; for(int x =

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
class Book { private String author; private String ISBN; Book() { author = "Jenkins"; ISBN = "CAU222"; } public void setAuthor(String a) { author = a; } public String getAuthor() { return author; } public void setISBN(String i) { ISBN = i; } public String getISBN()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { return ISBN; } Book one = new Book[20]; for(int x = 0;x<one.length;x++) one[x] = new Book(1001 + x,author); for(int x = 0;x<one.length;x++) System.out.println(one[x].getAuthor() + " " + one[x].getISBN()); }...
View Full Document

Ask a homework question - tutors are online