Pergunta de entrevista da empresa Fannie Mae

Method to determine if a string contains only digit characters

Resposta da entrevista

Sigiloso

10 de jun. de 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]+"))