Personally I prefer the second of your add() methods.
In Java you can create a new vector and, once there are no more references to it, it will softly and suddenly vanish away. You don't have to...
Type: Posts; User: pbrockway2
Personally I prefer the second of your add() methods.
In Java you can create a new vector and, once there are no more references to it, it will softly and suddenly vanish away. You don't have to...
When you declare "float[] data = new float[3];" the 3 is the number of elements in the data array.
If you were to use 2 instead of 3 then the runtime would complain about data[2]. That's because...