且构网

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

字符串到十六进制值

更新时间:2023-02-03 09:00:03

当您使用以0x或#开头的字符串时

When you have a string starting with 0x or #

Integer.decode(hexStr);

是目标

Integer.parseInt(hexString, 16);