标签:replace val bsp int format 转换 static integer class
public static void main(String[] args) { String str = "000AB"; Integer in = Integer.valueOf(str,16); String st = Integer.toHexString(in).toUpperCase(); st = String.format("%5s",st); st= st.replaceAll(" ","0"); }
标签:replace val bsp int format 转换 static integer class
原文地址:http://www.cnblogs.com/flycoding/p/6110635.html