title: How to print a method in java
body: <p>How am I supposed to print this to my console and make it show an array that i declared in my method?</p>
  <pre><code>import java.util.Arrays;
  public class FibonacciSequence
  {
      public int fibonacci( int numArray[])
      {
  
          for ( int i = 0; i &lt; numArray.length; i++ )
          {
              System.out.println( numArray[i] + numArray[i-1]);
          }
  
          return numArray[10];
  
      }
  
  
      public static void main(String[] args)
      {
  
  
      }
  }
  </code></pre>
  <p>When im trying to print it like:</p>
  <pre><code>System.out.println(fibonacci());
  </code></pre>
  <p>it doesn't work, so how am I supposed to do this?</p>
  <p>I just want to know how to print it in my console.</p>