CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2008
    Posts
    49

    SetADT? and a set of objects?

    I need to create a set of objects, im using the SetADT Class...

    how would i go about creating a set of objects, by the way, my object is "Card".

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: SetADT? and a set of objects?

    You'll have to provide a bit more detail - SetADT is not part of the standard Java libraries, so you'll need to post up the code, or describe it in detail. The same applies to the 'Card' class.

    You create a new object with the 'new' keyword.

    When you say 'create a set of objects', what do you mean by a 'set'? There is a collection class called 'Set' that stores objects and doesn't accept duplicates.

    We can help with Java problems, but we really can't teach Java here - there are plenty of online tutorials if you want to learn Java.

    It is not knowledge, but the act of learning, not possession, but the act of getting there which generates the greatest satisfaction...
    F. Gauss
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured