From: "Jan E." Date: 2012-06-07T18:35:06+09:00 Subject: Re: Byte Array for storing hexa decimal value Hi, There are no "hexadecimal numbers". An integer is an integer, but it can have different *representations* (binary, octal, hexadecimal etc.). So you simply put the integers into an Array, and whenever you display them, you use the hexadecimal representation. This can be done with the to_s method: 91.to_s(16) The 16 specifies the base (16 for hexadecimal, 2 for binary etc.). By the way, I'm not even sure what you mean by "byte array". The byte type in Java is simply a shortened integer. -- Posted via http://www.ruby-forum.com/.