Bookmark Topic Watch Topic
  • New Topic

Accessig a Method in a class in a SEt which is in-turn in a MAP.  RSS feed

 
Joe Solis
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am working on a project uses a MAP of Insureds, which contains a SET of Coverages, which in turn contains a SET of Products. Inside Class: Coverage, there is a METHOD called: totalProductCost that iterates through the SET of products and accumulates the cost of the products for each coverage.

What I am trying to do in a Class called "CoverageReport" is to "Drill-down" into Class: Coverage to get at this Method for reporting.

In the Java class I'm taking, we learned how to access collection data on a single level, but not how to "drill-down" into multiple levels.


Thanks.

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question twice; continue in your other thread.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!