Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

arrayset question, help please!

 
christopher persinger
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens when you run this? What is your question?
 
Scott Johnson
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the
removeAll() method in the Set interface.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic