title: How to call a method of a class into another class in apex
body: <p>I want to use a method of a class onto another class. </p>
  
  <pre><code>     eg: public class controller 1{
            public void method 1(){}
        }
  
  
       public class controller 2{
           public void method 2() { }     
         } 
  </code></pre>
  
  <p>I want to use method1 in class controller2.
  Please help me to find the solution on it</p>