C --〉JAVA,这段函数如何翻译
static long Crc32 (long oldcrc, byte newchar)
{
long Crc = oldcrc;
Crc = ((Crc >> 8) & 0x00ffffffL) ^
crc_table[(Crc ^ newchar) & 0xffL];
return Crc;
}
static long decrypt_byte(long key[])
{
long temp;
temp = key[2] | 2;
return((temp *( temp^1)) >> 8);
}
请问这段C程序翻成JAVA该怎么写。