Convert an integer to a two-character hex string. @param x the integer to convert @return the hex string
(int x)
| 425 | * @return the hex string |
| 426 | */ |
| 427 | protected static String hex(int x) { |
| 428 | String h = Integer.toHexString(x); |
| 429 | if (h.length() == 1) { |
| 430 | h = "0" + h; |
| 431 | } |
| 432 | return h.substring(h.length() - 2); |
| 433 | } |
| 434 | |
| 435 | |
| 436 | } |
no test coverage detected