title: Why doesn't Java allow enum to be defined within a method?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/700831/java-local-enums">Java: Local Enums</a>  </p>
  </blockquote>
  
  
  
  <p>Why do we cannot define enum within a specific method in java? If I have a scenario where I will be using those enum values in a method only not at any other place. Wouldn't it be nice to declare in method rather defining it at globally? i mean as public or default.</p>