Present in both answers;Present only in the new answer;Present only in the old answer;
This tries to match your whole input by the pattern. It would only return true if all the characters are non-digits. You could instead use the pattern "(\\d+)" and return !m.matches()
This tries to match your whole input by the pattern. It would only return `true` if all the characters are non-digits. You could instead use the pattern `"(\\d+)"` and return `!m.matches()`
Present in both answers;Present only in the new answer;Present only in the old answer;