This is my code, but the system said
cannot find symbol in this code "
Book[ ] books = new Book[size];
".
How I can fix it?
This is my code, but the system said
cannot find symbol in this code "
Book[ ] books = new Book[size];
".
How I can fix it?
at file start, you are probably missing a:
import something.something.Book;
in eclipse, go to error line, control+1, Import ... (first item of popup item).
Otherwise, you are missing the whole Book
class:
class Book {
private String title;
private int isbn;
private int quantity;
public Book(String title, int isbn, int quantity) {
this.title = title;
this.isbn = isbn;
this.quantity = quantity;
}
}