Hey, need a bit of help with this error I'm getting.
I'm a total beginner and really don't know where to start, when I compile it I get the error ')' expected but can't see any brackets that haven't been closed.
I'm not looking for you to write it for me, maybe just point me in the right direction if possible, thanks for looking
Code:
public void study()
{
if (TextBook book == null){
book = bookShelf[ nextBook ];
nextBook++;
card.swipe();
} else if (isFinished == false) {
chaptersRead++;
} else {
bookShelf[ nextBook ] = null;
}
I'm a total beginner and really don't know where to start, when I compile it I get the error ')' expected but can't see any brackets that haven't been closed.
I'm not looking for you to write it for me, maybe just point me in the right direction if possible, thanks for looking

Last edited: