First result on Google
public static boolean isInteger(String s)
{
try
{
Integer.parseInt(s);
}
catch(NumberFormatException e)
{
return false;
}
return true;
}
Use this and it will return true or false depending...