摘要: public static int hexToDecimal(String hex) { int decimalValue = 0; for (int i = 0; i = 'A') { return 10 + ch - 'A'; } else { return ch - '0'; ... 阅读全文
posted @ 2015-11-24 19:59 第壹时间 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 1、/** * All possible chars for representing a number as a String */ final static char[] digits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9... 阅读全文
posted @ 2015-11-24 19:35 第壹时间 阅读(1826) 评论(0) 推荐(0) 编辑