Need a Help
I need a small help in my HomeWork
this is a question
A class, MatchingVisitor, whose constructor takes an instance of MyComparable (target) as argument and finds whether the target exists in the container. Your visitor must have two additional methods as described below:
public boolean isFound() : returns true if a match is found, false otherwise.
public MyComparable getMatch() : returns the matched object if found, null otherwise.
Note: Your MatchingVisitor must stop the search as soon as it finds a match. It must also be general – i.e. It must works for a container that contains any type of MyComparable objects (Int, Dbl, RentalCar, etc.)
see the attachment... it has a classes that will be needed to solve this problem
You forgot the attachment, didn't you ?
Oh Sorry but i solved the problem tonight,
anyway thank you>>>
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL