title: Import cannot be resolved?
body: <p>So right now, I have a Brick.java which contains a Levels enum that I want to use in BreakoutCourt.java, which is contained in the same package, which is (default package).</p>
  
  <p>When I write import Brick.level; in BreakoutCourt , I get a message that says The Import Brick Cannot Be Resolved. I get that message even if I write import static Brick.Level!</p>
  
  <p>The levels enum contained in Brick.java looks like this: </p>
  
  <pre><code>public class Brick {
     public static final int BWIDTH = 60;
     public static final int BHEIGHT = 20;
     private int xPos, yPos; 
     private Level brickLevel;
  
      //This sets up the different levels of bricks.
     enum Level{
      LUNATIC (4, 40, Color.MAGENTA),
      HARD (3, 30, Color.PINK), 
      MEDIUM (2, 20, Color.BLUE),
      EASY (1, 10, Color.CYAN),
      DEAD (0, 0, Color.WHITE);
      private int hitpoints;
      private int points;
      private Color color;
  
      Level(int hitpoints, int points, Color color){
          this.hitpoints = hitpoints;
          this.points = points;
          this.color=color;
          }
      public int getPoints(){
          return points;
          }
      public Color getColor(){
          return color;
          }
  }
  
  //rest of brick class goes under the enum
  </code></pre>
  
  <p>And I use it in BreakoutCourt like this:</p>
  
  <pre><code>    //Generates the bricks.
      for(int i = 0; i &lt; 8; ++i){
          ArrayList&lt;Brick&gt; temp = new ArrayList&lt;Brick&gt;();
          Level rowColor = null;
          switch(i){
          //There are two rows per type of brick.
              case 0:
              case 1:
                  rowColor = Level.EASY;
                  break;
              case 2:
              case 3:
                  rowColor = Level.HARD;
                  break;
              case 4:
              case 5:
                  rowColor = Level.LUNATIC;
                  break;
              case 6:
              case 7:
              default:
                  rowColor = Level.MEDIUM;
                  break;
          }
          for(int j = 0; j &lt; numBrick; j++){
              Brick tempBrick = new Brick((j * Brick.BWIDTH), ((i+2) * Brick.BHEIGHT), rowColor);
              temp.add(tempBrick);
          }
  </code></pre>
  
  <p>What am I doing wrong? Thank you for the help!</p>