How to check whether a string is equal to + opearator in Java :     String value = "+";
    if (value.contains("\\+"))
    {
        value = value.replaceAll("\\+", " ");
    }

The if clause returns false. Why is it? What method should i use in the if clause for it to return true? Thanks in advance.