Beispiel #1
0
  public static void main(String[] args) {
    showSelf();

    TestThread myThread1 = new TestThread();
    TestThread myThread2 = new TestThread();
    myThread1.start();
    myThread2.start();

    int[] a1 = {1, 2, 3, 4, 5};
    int[] a2;
    a2 = a1;
    for (int i = 0; i < a2.length; i++) {
      a2[i]++;
    }
    for (int i = 0; i < a1.length; i++) {
      prt("a1[" + i + "] = " + a1[i]);
    }

    Vector v = new Vector();
    for (int i = 0; i < 5; i++) {
      v.addElement(new Test());
    }
    System.out.println(v);
  }