File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Data structures Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Data structures" Watch "Data structures" New topic

Data structures

Smitha Prasad
Ranch Hand

Joined: Apr 02, 2002
Posts: 41
Can a vector be put as an item of the hash table? reasons...?
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
1. Try it. Does it work?
2. What kind of things are put in and get from a HashTable?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Sayed Ibrahim Hashimi
Ranch Hand

Joined: May 17, 2001
Posts: 148
I don't see why you couldn't because a Hashtable will store objects and Vectors are objects.

SCJP 1.4<br /><a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Data structures
jQuery in Action, 3rd edition