code:         public boolean equals(Object obj) {
              if (obj instanceof CharEntry) {
                  return value.equals(((CharEntry) obj).value);
              }
              return false;
          }
          
      }
  
  
  }
  