posted 15 years ago
Hi all,
Are there any methods to convert the value of primitive data type to byte[]? Let's say, converting an int to byte[] will return byte[].length == 4, short to byte[] will return byte[].length == 2 and so on.
Is it possible doing it without using NIO?
Regards,
Allan Cheong