Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

qatar.engineer

Junior Member level 1
Junior Member level 1
Joined
Nov 9, 2006
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,452
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,
 

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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top