title: How do I call a non static method from a main method?
body: <p>For example, I am trying to do something like this</p>
  
  <pre><code>public class Test {
  
      public static void main(String args[]) {
  
          int[] arr = new int[5];
  
          arrPrint(arr);
      }
  
      public void arrPrint(int[] arr) {
  
          for (int i = 0; i &lt; arr.length; i++)
              System.out.println(arr[i]);
  
      }
  }
  </code></pre>
  
  <p>I get an error telling me that I can't reference non-static variables from static enviorments. So if that is true how would I ever utilize a non static method inside of a main?</p>