Im a beginner in java and im trying to use an array i've created but it keep not recoginze it. anyone know what could be the thing im missing here ?
to be more specific the command bookArray.length is making this error.
Library(int maxBookCapacity){
Book bookArray[]= new Book[libraryMaxBookCapacity];
}
boolean inLibrary(Book book){
for(int i=0; i<bookArray.length; i++ ){
if (book==bookArray[i]){
return true;
}
}
return false;
}