Ask god to help change the following method to the Java language, thank you
Void calc_crc (unsigned int * pCrc, unsigned char uData)
{
Int iBit;
For (iBit=0; IBit<8; IBit++ uData>
=1){
If ((uData ^ * pCrc) & amp; 0 x01)
{
* pCrc>=1;
* pCrc ^=0 xa001;
} the else
* pCrc>=1;
}
}