title: Java - Cannot Find Symbol Error With Other Classes
body: <p>First and foremost I want to make myself clear: <strong><em>I am not asking what the </strong></em><code>cannot find symbol</code> <strong><em>error means, I am simply asking what is causing this error in this context.</strong></em>
  <br><br>
  I have recently delved into classes in Java. Below is my first [non <code>main</code>] class:</p>
  
  <pre><code>class Test {
      public void test() {
          System.out.println("Hello, world!");
      }
  }
  class Main {
      public static void main(String[] args) {
          test();
      }
  }
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>exit status 1
  Main.java:8: error: cannot find symbol
                  test();
                  ^
    symbol:   method test()
    location: class Main
  1 error
  </code></pre>
  
  <p>Can anyone please explain why this happens?</p>
  
  <p><code>System.out.println("Thanks!");</code></p>