title: Can't use enum in Java (Error:Can't find symbol)
body: <p>So I have a class file with just my enums that looks like this</p>
  
  <pre><code>public class FactionNames {
      public enum Faction {AMITY, ABNEGATION, DAUNTLESS, ERUDITE, CANDOR};
  }
  </code></pre>
  
  <p>I have a class that uses these enums in a constructor which looks like this</p>
  
  <pre><code>public Dauntless(String f, String l, int a,  int ag, int end, Faction d) {
          super(f, l, a, d);
          if (ag &gt;= 0 &amp;&amp; ag &lt;= 10) {
              this.agility = ag;
          } else {
              this.agility = 0;
          }
          if (end &gt;= 0 &amp;&amp; end &lt;= 10) {
              this.endurance = end;
          } else {
              this.endurance = 0;
          }
      }
  </code></pre>
  
  <p>So to make sure everything in this class works properly I want to create some Dauntless objects in a driver, but I keep getting these errors</p>
  
  <pre><code>D:\Documents\Google Drive\Homework\1331
  Test.java:3: error: cannot find symbol
          Faction test;
          ^
    symbol:   class Faction
    location: class Test
  Test.java:4: error: cannot find symbol
          test = Faction.DAUNTLESS;
                 ^
    symbol:   variable Faction
    location: class Test
  2 errors 
  </code></pre>
  
  <p>I'm using my driver which looks like this. Is there anything wrong with my syntax? I can't figure out why i'm getting this errors. </p>
  
  <pre><code>public class Test {
      public static void main(String[] args) {
          Faction test; 
          test = Faction.DAUNTLESS;
          Dauntless joe = new Dauntless("Joseph", "Hooper", 20, 5, 3, test);
          Dauntless vik = new Dauntless("Victoria", "Ward", 19, 6, 2, test);
          Dauntless winner;
          winner = joe.battle(vik);
          System.out.println(winner);
  
      }
  }
  </code></pre>