Return to Snippet

Revision: 58437
at July 14, 2012 07:59 by dejot


Initial Code
public class HelloWorld {

  public static void main(String... args) {
    int[] a = new int[6];
    int zaehler = 0;
    
    for (int i = 0; i < a.length; i++ ) {
        a[i] = ++zaehler;
        
    }
    for (int i = 0; i < a.length; i++) {
      int c = a[i];
      System.out.println(c);
    }
    
    
    
  }

}

Initial URL

                                

Initial Description

                                

Initial Title
forschleife abfüllen von arrays und ausgabe

Initial Tags

                                

Initial Language
Java