title: How can I return a class in enum?
body: <p>I have a enum called scenes and some classes like game and menu, I get class of the enum using id how can I do that? thats all I need. sorry my english is bad.</p>
  <p>EDIT:</p>
  <p>this is my code</p>
  <pre class="lang-java prettyprint-override"><code>public enum Scenes {
      
      MENU(1, &quot;Menu&quot;),
      GAME(2, &quot;Game&quot;);
      
      public static int Scene = 1;
      
      private int id;
      private String name;
      
      private Scenes (int id, String name) {
          this.id = id;
          this.name = name;
      }
  
      public int getId() {
          return id;
      }
  
      public String getName() {
          return name;
      }
      
  }
  
  </code></pre>