Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.09 seconds.

  1. Re: Can anyone give me help/advice on this java library program?

    You need to have a variable in your LoanBook class:
    bookStatus status;
  2. Re: Can anyone give me help/advice on this java library program?

    What does your LoanBook class currently look like?
  3. Re: Can anyone give me help/advice on this java library program?

    Is it an error? Perhaps the status variable is not within the scope of that line of code (you cannot access the status variable directly). Add a getter to your LoanBook class, which returns the...
  4. Re: Can anyone give me help/advice on this java library program?

    Enums can be compared with ==.
    So you can say:
    if(bookArray[i].status==BookStatus.AVAILABLE)
  5. Re: Can anyone give me help/advice on this java library program?

    Status are generally stored as enumerations: Enum Types (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
    For example, you would have a class like:

    public enum BookStatus {...
  6. Re: Can anyone give me help/advice on this java library program?

    Ok, well the books have a status. I assume that is an indication for whether they are available, borrowed, or loaned? If so, you need to loop through your bookArray and check each book's status. If...
Results 1 to 6 of 6