import java.awt.*;
import java.applet.*;

public class VielePunkte extends Applet
{ Turtle t;

  public void paint(Graphics g)
  { t = new Turtle(this,150, 150, 0);
    zeichne();
  }

  // Arraydeklaration global
  double[] px;
  double[] py;

  void initArrays()
  {
    // Erste Moeglichkeit der Arrayerzeugung
    px = new double[10];
    px[0] =   50.0;
    px[1] =  100.0;
    px[2] =   25.0;
    px[3] =   60.0;
    px[4] =  150.0;
    px[5] =   90.0;
    px[6] =   20.0;
    px[7] =   10.0;
    px[8] =   60.0;
    px[9] =   45.0;
    // Zweite direkte Arrayerzeugung;
    py = new double[] {100.0, 120.0, 30.0, 23.0, 74.0, 13.0, 99.0, 140.0, 110.0, 100.0};
    // Dritte direkte Arrayerzeugung waehrend der Deklaration:
    // double[] py = {100.0, 120.0, 30.0, 23.0, 74.0, 13.0, 99.0, 140.0, 110.0, 100.0};
  } // initArrays

  void vonPzuP(double x1, double y1, double x2, double y2)
  { t.stiftHoch();
    t.geheZu(x1,y1);
    t.stiftRunter();
    t.geheZu(x2,y2);
  } // vonPzuP

  void zeichne()
  { initArrays();
    for (int i=0; i<=8; i++)
    {  for (int j=i+1; j<=9; j++) { vonPzuP(px[i], py[i], px[j], py[j]); }
    }
  } // zeichne
} // class VielePunkte

