P
Peter
Hi
Vector v = new Vector();
v.add((long)-123);
long l=(Long)v.get(0);
variable l will store -123 finally but it doesn't make sense of this
syntax : "long l=(long)v.get(0);", the vector v can store the
primittive type long, but can't do retireve it as long , has to change
it to Object Long first.
May be during this "v.add((long)-123);", -123 will convert to Object
Long before store it to vector, am i correct?
thanks
from Peter ([email protected])
Vector v = new Vector();
v.add((long)-123);
long l=(Long)v.get(0);
variable l will store -123 finally but it doesn't make sense of this
syntax : "long l=(long)v.get(0);", the vector v can store the
primittive type long, but can't do retireve it as long , has to change
it to Object Long first.
May be during this "v.add((long)-123);", -123 will convert to Object
Long before store it to vector, am i correct?
thanks
from Peter ([email protected])