unsigned int: Are this code in C and in java similar

C

int n,a;

unsignedint x;

int primos[3];

UCHAR b[3];

primos[0] = 2347;

primos[1] = 2351;

primos[2] = 2371;

a = 7;

na=5;

for (j = 0; j < 3; j ++)

{

x=((primos[j] * na)+a)%256;

b[j] = x;

}

JAVA

byte b[]=newbyte[3];

int x;

int primos[]=newint[3];

primos[0] = 2347;

primos[1] = 2351;

primos[2] = 2371;

int a = 7;

int na=5;

for (int j = 0; j < 3; j ++){

x=((primos[j] * na)+a)%256;

b[j]=(byte) (x & 0xff);

}

[1238 byte] By [jorgiria] at [2007-11-14]