CopyPastor

Detecting plagiarism made easy.

Score: 0.9435771775968147; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2014-02-12
by Ahmad Arslan

Original Post

Original - Posted on 2013-12-28
by Henry



            
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;