@@ -14,4 +14,20 @@ public class CharUtil {
String[] split = ZM.split("");
return split[index];
}
+
+ /**
+ * 根据字母获取位置
+ *
+ * @return
+ */
+ public static Integer getZmIndex(String a) {
+ int index = 1;
+ for (String s : ZM.split("")) {
+ if (s.equals(a)) {
+ return index;
+ }
+ index++;
+ return null;