Domanda di colloquio di Fannie Mae

Method to determine if a string contains only digit characters

Risposta di colloquio

Anonimo

10 giu 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]+"))