Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- newSet= new HashSet< myObjectType >();
- for (myObjectType s : origSet){
- addToHashSet(newSet, process(s,message));
- }
- return newSet;
- newSet= new HashSet< myObjectType >();
- for (myObjectType s : origSet){
- newSet .add(process(s,message));
- }
- return newSet;
Add Comment
Please, Sign In to add comment