472,325 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,325 software developers and data experts.

Finding common entries in multiple arraylists

Trying to find the best way to find common entries in an x number of
ArrayLists or arrays of integers. Curious if there is a method already
available in .NET to do just this very thing.

Situation is that each array contains search results for a given criteria,
but the end result should only give the search results that are common to
all arrays of results.

SearchArrayOne[0] = 100
SearchArrayOne[1] = 101
SearchArrayOne[2] = 102
SearchArrayOne[3] = 103

SearchArrayTwo[0] = 102
SearchArrayTwo[1] = 103

End Results:
ResultsArray[0] = 102
ResultsArray[1] = 103

Jul 21 '05 #1
0 1035

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Amy G | last post by:
I have received such good help on this message board. I wonder if I might not get a little more help from you on this. I am at the point where I...
by: Chris Lau | last post by:
What is the best way to compare two entries in a single table where the two fields are "almost" the same? For example, I would like to write a...
by: andreas.maurer1971 | last post by:
Hi all, since a few years I use the following statement to find duplicate entries in a table: SELECT t1.id, t2.id,... FROM table AS t1 INNER...
by: Xah Lee | last post by:
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official...
by: Ayoa | last post by:
I am trying to identify items that are common to 2 or more arraylists e.g. a = {2,4,6,8} b = {4,5, 6,7,8} C = {0,4,8,16} I would like to...
by: Brandon Potter | last post by:
Trying to find the best way to find common entries in an x number of ArrayLists or arrays of integers. Curious if there is a method already...
by: Anca Floria | last post by:
Hi there! I am trying to find out what is wrong with the following code: SELECT Investor.Company, Investor.ID, Investor.Country FROM Investor...
by: Cindy | last post by:
At the risk of asking a stupid question - Is anyone familiar with either a query against the systables or maybe an outside tool that will provide a...
by: jameswilkinsonfjs | last post by:
Hi All, Ok I have a table - it lists items with a unique reference code; lets say there are 4 items : Item RefCode 1 ...
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.