Understanding Java unsigned numbers

后端 未结 3 983
礼貌的吻别
礼貌的吻别 2021-01-03 00:59

I want to understand how to convert signed number into unsigned.

lets say I have this:

byte number = 127; // \'1111111\'

In order t

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-03 01:39

    java does not have unsigned data types. You just make switch to "bigger" data type, that's all.

提交回复
热议问题