Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

Calling a method of an object stored in a TreeMap

 
Bob Bob
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
Im doing a project for my college class that requires me to write an applet that will create and store Employees Objects. I have written an Employee class containing a getName method used to return en employee's name. I have also created a required TreeMap collection (name empObjects) used to store the employee objects that will be made. My problem is, I need to find a statement that will allow me to get an object from my empObjects collection, call the getName method, and place it within a textbox (named empName). I have tried several times but cannot come up with a good solution. I would appreciate any help.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same topic in multiple forums. I responded to this post here Using a class method of an object stored in a TreeMap .
Michael Morris
 
    Bookmark Topic Watch Topic
  • New Topic