Naming the new instances of a class with numbers
<p>I am trying to create new instances of a class and I would like to name them as such</p>

<p>vektor1
vektor2
vektor3 and so forth. As a numerating source I want to use the value of the i which belongs to the for loop. Here is the for loop I am using for this</p>

<pre><code>for(int i=0; i&lt;5;i++){
        System.out.println ("Bitte geben sie die erste Koordinat der "+(i+1)+". Vektor ein");
        double k1=scan.nextDouble();

        System.out.println ("Bitte geben sie die zweite Koordinat der "+(i+1)+". Vektor ein");
        double k2=scan.nextDouble();

        System.out.println ("Bitte geben sie die dritte Koordinat der "+(i+1)+". Vektor ein");
        double k3=scan.nextDouble();

        vektor.add(new Vektor3Dcomparable(k1,k2,k3));
    }
</code></pre>

<p>Here I would like to name the instances of the class, before adding it to the ArrayList. How can I do this?</p>
