title: How do I call a method from one class in another?
body: <p>I am trying to call the <code>statemotOfPhilosopy</code> in my other class.</p>
  
  <p>There are two classes:</p>
  
  <p>First class <code>SetUpSite</code>:</p>
  
  <pre><code>package setupsite;
  
  public class SetUpSite {
      public static void main(String[] args) {
          statementOfPhilosophy();
      }
  
      public static void statementOfPhilosophy() {
          System.out.println("Even Handlers Incoroporated is");
          System.out.println("dedicated to making your event");
          System.out.println("a most memorable one.");
      }
  }
  </code></pre>
  
  <p>And the second class <code>CallingMethods</code>:</p>
  
  <pre><code>package callingmethods;
  
  public class CallingMethods {
      public static void main(String[] args) {
          System.out.println("Calling method from another class:");
          SetUpSite.statementOfPhilosophy(); //Error here at the SetUpSite
      }
  }
  </code></pre>