Uses of Class
tema1.Vector

  • Uses of Vector in tema1

    Methods in tema1 with parameters of type Vector
    Modifier and Type
    Method
    Description
    void
    Vector.add(Vector tmp)
    Computes the sum of 2 vectors merging the second one in the first one example: Vector myVector = new Vector(1,2,3,4,5,6); Vector myVector2 = new Vector(10,12,13); myVector.add(myVector2) result: myVector now holds: 11,14,16,4,5,6 If the second vector has more elements then the first one, missing elements are merged EXCEPT IT DOESNT JUST DONT ADD A SMALLER VECTOR TO A BIGGER ONE OR UR CODE GONNA EXPLODE Ok it doesnt explode anymore, just ignores whatever is afterwards