static bool isDigitIncluded(String string) { for (int i = 0; i < string.length; i++) { if (string.codeUnitAt(i) >= 0 && string.codeUnitAt(i) <= 9) { return true; } } return false; }