You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
353 B

package org.atm.ctrl;
public class Validate {
private static final int len = 7;
public static boolean is7RandNumeric(String str) {
boolean flag = str != null && str.matches("\\d{" + len + "}");
if (!flag) {
System.out.println(str + " must is " + len + " Numeric!");
return false;
} else
return true;
}
}// end Validate