如何在Java中为变量分配2个字节?我知道我可以这样做:
byte val = 2; // this is one byte with 0000 0010
但我需要为val分配2个字节.我怎样才能做到这一点?
java
java ×1