- #1
courtrigrad
- 1,236
- 2
Code:
public class check
{
public boolean isDifferent(int [] a, int [] b)
{
for(int i=0; i < a.length; i++) //loop through your a array
{
for(int j=0;j<b.length;j++) //next loop through your b array
{
if( a[i] != b[j] ) // check for inequality
{
return true;
}
}
}
return false;
}
}
is this correct?