+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Junior Member level 1
    Points: 1,202, Level: 7

    Join Date
    Nov 2006
    Posts
    19
    Helped
    0 / 0
    Points
    1,202
    Level
    7

    How to implement a "Rent" or "Record" method in a library system using Java?

    Hi,

    could you tell me please how can i implement a "Rent" or "Record" method in a library system class

    using JAVA


    thanks any way,

    •   AltAdvertisement

        
       

  2. #2
    Newbie level 2
    Points: 1,084, Level: 7

    Join Date
    Feb 2007
    Posts
    2
    Helped
    0 / 0
    Points
    1,084
    Level
    7

    Re: A Java method

    Well...you could create a book class for a book object with a boolean attribule for whether it is currently being rented or not. Then you could create a library class with an ArrayList of books and then you could implement a "rent" method which would just change the rented objects attribute. And in the rent method you could call a private record method to keep track of all library objects rented, overdue, in stock, etc.

    Good Luck
    :D



--[[ ]]--