title: Can't access enum values inside Switch Case / Java
body: <p>I can't access my enum variables in my switch-case statement:</p>
  
  <pre><code>public enum Country {
  
  FRANCE(0, "France"), SPAIN(1, "Spain");
  private final int code;
  private final String name;
  Country(int code, String name) {
      // TODO Auto-generated constructor stub
      this.code = code;
      this.name = name;
  }
  public int getCode() {
      return code;
  }
  public String getName() {
      return name;
  }
  }
  </code></pre>
  
  <p>In another class there is this code :</p>
  
  <pre><code>public Drawable getFlag(){
      Drawable d = null;
      switch(country_id){
      case Country.FRANCE.getCode():
          break;
      }
      return d;
  }
  </code></pre>
  
  <p>But the problem is that when i type Country, there is only class or this.</p>