Method to determine if a string contains only digit characters
Anonymous
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]+"))
Check out your Company Bowl for anonymous work chats.