(String str)
| 75 | test_str("111"); |
| 76 | * */ |
| 77 | public static boolean IsDigit(String str) { |
| 78 | for (int i = str.length(); --i >= 0; ) { |
| 79 | if (!Character.isDigit(str.charAt(i))) { |
| 80 | return false; |
| 81 | } |
| 82 | } |
| 83 | return true; |
| 84 | } |
| 85 | |
| 86 | public static boolean IsHexadecimal(String str) { |
| 87 | Pattern p = Pattern.compile("^0x[a-fA-F0-9]+"); |
no outgoing calls
no test coverage detected