Q:

Java comparison of array data regardless of size or order

I'm writing a basic program to compare the data in two arrays.  The order doesn't matter and neither do repeated numbers.  The output is currently saying the array data is the same.  Which is not what I want to happen as the array data is different.  This is the code I have right now:
public class Algorithm1{
public static void main (String[] args){

    int[] array1 = {1, 2, 3};
    int[] array2 = {1, 2, 3, 4, 5, 6};
    int matchCount = 0;
    boolean match = false;

for(int j = 0; j < array1.length;j++)   {
    for(int i = 0; i < array2.length;i++){
if(array1[j] == array2[i])
    matchCount++;

    }
}
if(matchCount >= array1.length && matchCount >= array2.length)
    match = true;

if(match = true){
    System.out.println("The data in the arrays is the same."); 
                }
else if(match = false){
    System.out.println("The data in the arrays is different."); 
                }
}
}

A:

Simply replace if(match = true) by if(match == true) or, even simpler, if(match), and you should be all right ;)
You wrote:
if(match = true) {
    System.out.println("The data in the arrays is the same."); 
}

That if(match = true) actually:

sets match to true
tests if the previous expression was true... and enters the if :)

As a side note, I would like to point out that you don't need to specify if(match==false) in your else clause... because if we enter that else, it already means that match ! = true (i.e.: match == false). 
Cheers!