/**
* A string is an int or not.Double or float point would be return false.
* @param integer
* @return
*/
public static boolean isInteger(String integer)
{
Pattern p = Pattern.compile("\\d*");
Matcher m = p.matcher(integer);
boolean b = m.matches();
return b;
}