Here you can find the source of isTextInteger(String texto)
public static boolean isTextInteger(String texto)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean isTextInteger(String texto) { boolean out = false; if (texto != null) { texto = texto.toLowerCase().trim(); try { Integer.parseInt(texto); return true; } catch (Exception e) { return false; }/*from ww w .j a va 2 s. c o m*/ } return out; } }