November 24th, 2008, 03:01 PM
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, 05:55 PM
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...
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.
Click Here to Expand Forum to Full Width