ubsjmg
asked on
Remove All Elements from a Vector in JDK1.1.6
What is the method that flushes a Vector in JDK1.1.6. In 2.0 the clear() method works.
Thanks in advance,
Thanks in advance,
If you want to clear a Vector, the simplest way (that works for any class) would be to create a new one, which would drop the handle to the old one which would then be garbage collected later. This, however, only would work if the Vector was only referenced by one object.
Just my 1/2 cent.
Laminamia :)
Just my 1/2 cent.
Laminamia :)
As far as I know
It should be removeAllElements()
It should be removeAllElements()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Jim Cakalic