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".
Printable View
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".
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