title: How to check equals on enum value?
body: <p>How can I check equality on a value of an enum? I tried the following, but it fails. WHy?</p>
  
  <pre><code>class enum Test {
      LETTER("1A");
  
      private String value;
      public Test(String value) {
          this.value = value;
      }
  
      @Override
      public void toString() {
          return value;
      }
  }
  
  
  String teststring = "1A".
  Sysout(teststring.equals(Test.LETTER)); //false. Why???
  </code></pre>