/**
* Created by Administrator on 2017/5/25/025.
*/
public class PassWordUtil {
/** * 纯数字
* @param str
* @return */
public static boolean isNumeric(String str){
for (int i = str.length();--i>=0;){
if (!Character.isDigit(str.charAt(i))){
return false;
}
}
return true;}
/** * 纯字母
* @param fstrData
* @return */
public static boolean isChar(String fstrData){
char c = fstrData.charAt(0);
if(((c>='a'&&c<='z') || (c>='A'&&c<='Z')))
{ return true;
}else{
return false;
}
}
}