I am a newbie to java, Simple question, how do i pass a boolean flag from one class to another...
I have a class Library
public void library()
open = true;
why cant i say this in my other class "Customer"
public void borrowBook(String Title)
private Library aLibrary;
if (aLibrary.open == true)
If i do this i get boolean canot be derefrenced....