File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Vectors

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Hi,
Consider String s[][],this is twodimesional array
s[0][0]="vijay" we can store element(by using two for loops,we can store strings with out that also we can ).Like that it is possible to store elements in vector how i can break numbering.
I will give one example.
Vector v =new Vector();
v.add("");here indexing we can't break just like Arrys.
My idea is in two dimesinal array 20 rows are there,and columns
11 ,if you go on adding in vector,it won't break numbering just like array.How it possible.
Bye,
vijay
 
srinivas acharyulu
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Obviously Vector cannot be equivalent to a twodimensional array. There you have the concept of capacity.As it is being said 20 rows and 11 columns in an array for example, then all the 220 elements have to be added to the vector. And there for retrieving you have to retrieve like say v[i].
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic