DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Thread: Need a Help

  1. #1
    Join Date
    Jan 2005
    Posts
    38

    Exclamation 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

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    You forgot the attachment, didn't you ?
    eschew obfuscation

  3. #3
    Join Date
    Jan 2005
    Posts
    38
    Oh Sorry but i solved the problem tonight,
    anyway thank you>>>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links