This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Calling a method from another class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Calling a method from another class?" Watch "Calling a method from another class?" New topic
Author

Calling a method from another class?

celine scarlett
Ranch Hand

Joined: Nov 06, 2005
Posts: 93
Hi,

How do I get 'private Borrower addBorrower' in the class BorrowerListManager to call the method 'private boolean add' in the class BorrowerList.

I'm getting a bit confused with all the links so far.

1. Code for the BorrowerListManager class,



2. Method code from the class BorrowerList,



Any help appreciated!!
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3420
    
  12

[ November 22, 2005: Message edited by: Joanne Neal ]

Joanne
celine scarlett
Ranch Hand

Joined: Nov 06, 2005
Posts: 93
Hi,

Thanks for the reply. I don't understand what code is required in the 'private Borrower addBorrower()' method within the BorrowerListManager class.

Any help appreciated!!
Ben Wood
Ranch Hand

Joined: Aug 14, 2001
Posts: 342


becomes...



SCJP 1.4, www.gsi3d.org.uk
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling a method from another class?
 
Similar Threads
Errors when reading and writing from a text file - any help!!
Reading strings from a line problem _ any help!!
Error passing values to a method - any help!!
manager class with testing - any help please!!!
Error in run method and class - help!