(char i)
| 347 | |
| 348 | |
| 349 | public static String getBitStr(char i) { |
| 350 | int ascii = (int) i; |
| 351 | |
| 352 | StringBuilder s = new StringBuilder(Integer.toBinaryString(ascii)); |
| 353 | if (s.length() < 8) { |
| 354 | int zeroCount = 8 - s.length(); |
| 355 | for (int j = 0; j < zeroCount; j++) { |
| 356 | s.insert(0, '0'); |
| 357 | } |
| 358 | } |
| 359 | return s.toString(); |
| 360 | } |
| 361 | |
| 362 | public static void selfDestory() { |
| 363 |