hi
in one of my projectes, it occour a porblem that can be solved in follow way:
i want to be able to have similar thing to ArrayList, but instead i call the object by his position on the "array", i call it for a integer that is attached to the object in the array
something like:
-------------------------------------------------
class asd {
asd(float a) {
x = a;
}
float x;
}
specialArrayList test = new specialArrayList();
test.add(5, new asd(10.5));
test.add(2, new asd(20));
test.add(4, new asd(2.36));
asd a = (asd) test.get(5);
println(a.x);
----------------------------------------------------------------
it will print 10.5
--------------------------------------------
thank
i will be very gratfull!!
sry for the bad English
:D
1