title: Fibonacci Sequence return argument
body: <p>I need to generate a program that generates the Fibonacci Sequence
  Here is what I have so far:</p>
  
  <pre><code>import java.util.Scanner;
  
  public class FibonacciRunner
  {
      public static void main(String[] args)
      {
          Scanner in = new Scanner(System.in);
  
          System.out.println("Enter n:");
          int n = in.nextInt();
  
          EP64 fg = new EP64();
  
          for (int i = 1; i &lt;= n; i++)
              System.out.println(fg.nextNumber());
      }
  }
  
  
  
  public class EP64
  {
  
      public static void nextNumber(int n)
      {
          int fold1 = 1;
          int fold2 = 1;
          int fnew = fold1 + fold2;        
          fold1 = fnew;
      }
  }
  </code></pre>
  
  <p>I get an  error on:</p>
  
  <pre><code>    System.out.println(fg.nextNumber());
  </code></pre>
  
  <p>saying:
  method nextNumber in class EP64 cannot be applied to given types:
  required: int
  found: no arguments
  reason: actual and formal argument lists differ in length</p>
  
  <p>and can someone also tell me if I am doing this program right? If not, help! I looked at other similar questions but I cannot make much sense of them</p>
  
  <p>Thank you all!</p>