如何将整数值存储在 Byte ArrayList 中。
class sample
{
int a=4;
ArrayList<Byte> arr=new ArrayList<Byte>();
// I dont want to type cast 'a' to a byte.
// Is there any other way - like if i can get 4bytes of memory and allocate the int into this //ArrayList-is it possible here?
}