So my program uses a short and I originally attempted to assign it a value like so:
static short zeroLeadsOne = 21845;//0101010101010101
However
Java forces me to cast it using the following statement:
static short zeroLeadsOne = (short) 21845;//0101010101010101
Can someone help me understand why I'm forced to cast this as I belive the value meets the primitive data type requirements.
Thanks
RJ.
[ September 20, 2003: Message edited by: Rob Jones ]