A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
Opposite of a Union
Joined: Aug 12, 2003
Aug 14, 2003 15:34:00
I can't remember the term. Can anyone tell me? It's when you take 2 sets of data and only keep data that's in both sets. also, does Java have a function that performs this action?
Joined: Jun 06, 2002
Aug 14, 2003 15:38:00
That's called an "intersection". The Java function, in the Set interface, is retainAll().
Union is addAll(). Set subtraction is removeAll().
Ron Newman - SCJP 1.2 (100%, 7 August 2002)
I agree. Here's the link:
subject: Opposite of a Union
Helps need on HTML Table for Ajax
google type next butons
display data page vise
Scrabble... it only takes a minute...
how to add navigation in JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014