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>>>
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center