Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2010 Find out which array contains another array

$
0
0
Hello there

Im not a professional programmer, I had some .net classes in school, and most of the time when I get stuck, I can help myself with googling stuff, however this time im stuck.

I have an arraylist filled with arrays.

Example of such arrays:

Array1 = {one,two,three}
Array2 = {two,one,three,four}
Array3 = {two,one,four}

I want to find out, which array can be found in another array, order does not make a difference.
So in the example, Array1 is found completely in Array2, but not in Array3. Array3 is also found in Array2.

I want my output to be something like:
{one,two,three} matches {two,one,three,four}
{two,one,four} matches {two,one,three,four}

Any help would be great!

Viewing all articles
Browse latest Browse all 27554

Trending Articles