I'm learning OOP in Java, but I'm not sure how to implement this reference or whatever you want to call it.
There are two relevant classes: Manager and Team
Team contains a field called manager, which is an instance of Manager. This links the team to a manager. It also contains a String field called name, which is the teams name.
Manager contains a String field called name, which is the managers name. It also contains a method called printDetails() which is supposed to print the managers name and team name. The bit I'm stuck with is finding the Team instance for this Manager so I can get her teams name.
I haven't posted any code because I think this is a design feature, and there isn't some magical code to do it for me. (unless you can iterarte through all the Team instances to find the manager)