 

 public class ZahlenfolgeImFeld_Vorlage
{ int[] folge;
  // oder
  // int folge[];
  int maxIndex = 9;

  public ZahlenfolgeImFeld_Vorlage()
  { folge = new int[maxIndex+1];
    zahlenfolgeA(); druckeFeld("A:");
    zahlenfolgeB(); druckeFeld("B:");
    zahlenfolgeC(); druckeFeld("C:");
    zahlenfolgeD(); druckeFeld("D:");
    zahlenfolgeE(); druckeFeld("E:");
  }

  public void druckeFeld(String name)
  { System.out.print("Zahlenfolge " + name + " "); 
    for (int n = 0; n <= maxIndex; n++)
          System.out.print(folge[n] + " ");
    System.out.println();   
  }

  public void zahlenfolgeA()
  { // 1 2 3 4 5 6 7  ...
    for (int n = 0; n <= maxIndex; n++)
                  ; // hier fehlt etwas.
  }
  
  public void zahlenfolgeB()
  { // 2 4 6 8 10 12 14 ...
    for (int n = 0; n <= maxIndex; n++)
                  ; // Hier fehlt etwas.
  }
  
  public void zahlenfolgeC()
  { // 3 6 9 12 15 18 21 ...
    for (int n = 0; n <= maxIndex; n++)
                  ; // Hier fehlt etwas.
  }

  public void zahlenfolgeD()
  { // 1 2 4 7 11 16 22 ...
    folge[0] = 1;  
    for (int n = 1; n <= maxIndex; n++)
                  ; // Hier fehlt etwas.
  }

  public void zahlenfolgeE()
  { // 1 6 3 8 5 10 7 ...
    folge[0] = 1;
    for (int n = 1; n <= maxIndex; n++)
         { 
                  ; // Hier fehlt etwas.
         }
  }  
  
}
