This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes arrayset question, help please! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "arrayset question, help please!" Watch "arrayset question, help please!" New topic
Author

arrayset question, help please!

christopher persinger
Greenhorn

Joined: Aug 23, 2005
Posts: 20
I am supposed to be writing a method in a class called ArraySet that will do the following: Take a set as a parameter and substract the contents of that set from the current set if they exist in the current set. Then I would return the result as a new set. This is the code I have so far....

Tom Henner
Greenhorn

Joined: Jul 04, 2005
Posts: 18
What happens when you run this? What is your question?
Scott Johnson
Ranch Hand

Joined: Aug 24, 2005
Posts: 518
Take a look at the
removeAll() method in the Set interface.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: arrayset question, help please!
 
Similar Threads
Stack Over flow error when Instantiating
SetE and array
I need help with my project! ADT
Generics and instanceof
If in a While not working