title: Static Methods or Not? Global variables?
body: <p>I want to know what way is more efficient.</p>
  
  <ol>
  <li><p>No global variables, passing variables through parameters, having all methods static</p></li>
  <li><p>No global variables, having only main method static and creating class object in main to access methods</p></li>
  <li><p>Use only global variables, having only main method static and creating class object in main to access methods</p></li>
  </ol>
  
  <p>I am currently using method 3 but I want to know what is more efficient. This class will not be used by any other class outside of it, it pretty much stands alone.</p>
  
  <p>Example of my code structure:</p>
  
  <pre><code>public class myClass {
     private int globalVariable;
  
     public static void main(String args[]) {
        myClass c;
        c.someMethod(); // Changes global variable from method
        System.out.println(someMethod); // Prints solution
     }
  
     public void someMethod() {...}
  }
  </code></pre>