Re: Vector Storing
- From: Aki Laukkanen <aki.laukkanen@xxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 12:12:46 +0200
andrewzzz wrote:
In a class I have to store and mantain a Vector object.
I can declare it as static, but anyway to access it I have to
initialize the Vector (new Vector()) ... so everytime I create a new
instance of this class I lose my data(??).
actual :
private static Vector dynvector;
in the constructor :
dynvector=new Vector;
dynvector.add(de);//add de to the end of the vector
What should I do to save the content of a vector ???
What are you trying to do with the Vector? The above example makes no sense to me.
--
-Aki Laukkanen
.
- Follow-Ups:
- Re: Vector Storing
- From: andrewzzz
- Re: Vector Storing
- References:
- Vector Storing
- From: andrewzzz
- Vector Storing
- Prev by Date: (newbie) definitive class/regex for stripping empty lines from text files?
- Next by Date: Re: (newbie) definitive class/regex for stripping empty lines from text files?
- Previous by thread: Vector Storing
- Next by thread: Re: Vector Storing
- Index(es):
Relevant Pages
|
|