title: How to add values to an existing enums outside of the class in java
body: <p>How do you add more values to enums in java, I made some code to give an idea of what I'm going for but I know it doesn't work.</p>
  
  <pre><code>public class Types 
  {
      public enum PieceTypes
      {}
  
      public void addTypes(String a)
      {
          PieceTypes = PieceTypes.values() + a;
      }
  
  }
  </code></pre>
  
  <p>I have no idea where to start, please help.</p>