Page 1 of 1
In java card, how to convert byte to short?
Posted: Sat Dec 12, 2015 3:40 am
by gorgekin
There are only small kinds of data types in java card. Now I am trying to convert data stored in a single byte type to short type. Ho can I do this? Is this the same as Java language?
Re: In java card, how to convert byte to short?
Posted: Sat Dec 12, 2015 4:33 am
by kuafu
Yes.
Re: In java card, how to convert byte to short?
Posted: Sun Dec 13, 2015 9:55 pm
by UNKNwYSHSA
Code from one opensource project:
Code: Select all
short ss = Util.makeShort((byte)0x00, (byte)bb);