Question d’entretien chez Fannie Mae

Method to determine if a string contains only digit characters

Réponse à la question d'entretien

Utilisateur anonyme

10 juin 2020

If we are using python, we can use isdigit() to check if the string contains only digit characters. For JAVA, we can use matches() method to check it. E.g. str.matches(("[0-9]+"))