Arrays

  • Das Arbeiten mit Arrays funktioniert wie folgt:

    [code:1]public class Testarray01
    {

    /**
    * @param args
    */
    public static void main(String[] args)
    {
    int hugo[] = new int[10];
    int paul[] = { 1, 2, 3, 4 };

    for (int temp = 0 ; temp < hugo.length ; temp++)
    {
    hugo[temp] = temp;
    System.out.println( hugo[temp] );

    }

    }

    }
    [/code:1]
    mfg KC