Skip to main content
2 of 5
added 66 characters in body; edited title
yivi
  • 46.9k
  • 30
  • 217
  • 297

How similar needs a question to be to another to be marked as a duplicate?

This question has been dupe-hammered by Jens earlier today. It has been reopened (and reclosed) since; but my question about the validity of dupe votes remains.

Quick summary of the question: OP generates a String in one method and wants to make it accessible to another.

Quick summary of the dupe link: OP asks how to compare Strings in Java.

I believe these two have nothing in common with each other.

Jens argument for the dupe vote is based on one line in the code which I believe is not at main point of the question:

if(LetterString == PressedKey){

Which is how OP of the linked question tries to compare the Strings. Besides, that is not even currently relevant because LetterString does not contain the updated value (which is what the question really is about).

My question: Is that a good enough reason for a close vote/hammer? Is the degree of similarity that small to cast a duplicate vote?

Below is the conversation Jens and me had in the comments regarding this (in case they are removed/moved to chat):

Conversation

geisterfurz007
  • 5.8k
  • 10
  • 15