title: Using Java enums from different classes?
body: <p>If I had a class in Java like this:</p>
  
  <pre><code>public class Test
  {
      // ...
      public enum Status {
          Opened,
          Closed,
          Waiting
      }
      // ...
  }
  </code></pre>
  
  <p>And I had a different class in a different class file (but in the same project/folder):</p>
  
  <pre><code>public class UsingEnums
  {
      public static void Main(String[] args)
      {
          Test test = new Test(); // new Test object (storing enum)
  
          switch(test.getStatus()) // returns the current status
          {
              case Status.Opened:
                  // do something
              // break and other cases
          }
      }
  }
  </code></pre>
  
  <p>I would effectively have an enum in one class that is used in another class (in my case, specifically in a switch-case statement).</p>
  
  <p>However, when I do that, I get an error like:</p>
  
  <blockquote>
    <p>cannot find symbol - class Status</p>
  </blockquote>
  
  <p>How would I fix that?</p>