-
November 24th, 2008, 04:01 PM
#1
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".
-
November 24th, 2008, 06:55 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|