Dear all,
Discussions about Vector in JAVA
vector is like an array, but it grows as necessary to allow you to add
as many elements as you like.
So it becomes very handy when you program something with unknown number.
Here are my questions
If I want to vector instead of an array , the type of array will be
double, how should I implement it. See example below
double Jarray [] = new double [100] ;
double KTarray [] = new double [100] ;
double m_dHigh, m_dStep, Jrange;
int Ni;
....
for( Ni=0; Jrange<=m_dHigh+0.00000001; Ni++){
Jarray[Ni]=Jrange;
( Some methods here)
KTarray[Ni]=KTT;
Jrange=Jrange+m_dStep;
}
In this code I want to use Vector Jarray instead of Jarray[] and
KTarray[];
Please if you have time come up with your ideas, and any literature of
how to use Vector are welcome!
Thanks in advance
Best Regards
Js (a new user of java )
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---