且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我想将字符串和整数转换为无符号字节

更新时间:2022-12-15 08:33:03

Java没有无符号字节.

Java does not have an unsigned byte.

从字符串转换为shortShort.parseShort(string)

如果要引用Axis的UnsignedByte类,则可以使用构造函数:

If you are referring to Axis's UnsignedByte class, you can use the constructors:

new UnsignedByte(sting);
new UnsignedByte(integerValue);