Bitwise operations

Hi..

I need to evaluate a character (to be passed as block checking character for serial communication) which is formed by

1. summation of all characters in message.

2. setting the most significant bit to 0.

How can i accomplish setting the most significant bit of this character to 0?

Any help would be sincerely appreciated.

Regards

JS

[395 byte] By [jswordfish] at [2007-9-26 22:17:32]
# 1
Assuming Unicode character (i.e. 16 bits)mychar &= 0x7fff;
pjt33 at 2007-7-4 1:50:53 > top of Java-index,Other Topics,Java Community Process (JCP) Program...