I need to compare int[] array with integer values. This code am having
int c1[], c2[], c3[];
int count1=0, count2=1, count3=0;
c1 = new int[] { count1 };
c2 = new int[] { count2 };
c3 = new int[] { count3 };
Now i need to compare this int[] array with int, that is any array equals 0 then code don't need to execute if not equals then code execute. How to compare ?? help me thanks in advance ? this if condition i tried but it wont execute exactly.
if(c1.equals(0))
{
// skip
}
else
{
// execute code
}
this above code didn't work.