Sometimes, answers could be very similar: use the same system/class/method/library, but they are not 100% copied.
I found an example with this question: How do I read / convert an InputStream into a String in Java? . I take the example of using BufferedReader
& readLine()
, so here are the answers (ordered by score):
Answer | Score | Date | Explanation | Try/Catch | Method | Comment |
---|---|---|---|---|---|---|
Answer 1 | 267 | 2011 | No | No | Only return | |
Answer 2 | 68 | 2013 | Not about code | Only throws | Yes | Use System#getProperty |
Answer 3 | 39 | 2011 | Yes, with performance | No | No | Approach #2 |
Answer 4 | 30 | 2012 | Not about code | Only throws | Yes | Say code is from Answer 1 |
Answer 5 | 22 | 2014 | Yes | Only throws | Yes | Use char[] |
Answer 6 | 21 | 2012 | Yes (in comment) | Only throws | Yes | |
Answer 7 | 1 | 2016 | Very very quick | Yes | Yes | |
Answer 8 | 1 | 2016 | No | Yes | Yes | Few days after Answer 7 |
I put, in the table, only possible differences. We can see all the answers have similarities, especially the 7 & 8. They all use the same system, with not the exact same code, or the same presentation of code (i.e., what is around the requested behavior).
Are all of those considered as duplicate? Which one should be mentioned as the main? The older? Most upvoted?
Sorry for all the questions, but it's well focused on the same beam: What should we do with very similar answers, and until when it's (or not) duplicate?