Arrays are objects, not primitives. Using ==
on objects only compares if they both points to the same reference, while you actually want to compare every individual array item separately.
You want to use Arrays#equals()
for this.
if (Arrays.equals(methodParams, searchParams)) {
// ...
}
BalusC
2010-05-27 18:29:09