File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Array to Hashmap
Joined: Feb 13, 2004
Feb 19, 2004 22:51:00
How do i create a Hashmap from an Array?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Feb 20, 2004 07:29:00
Since each entry in a
requires a key and a value, there is no single call to create a
from an array. Starting with a newly constructed
, you have to put( key, value ) for each value in the array.
I agree. Here's the link:
subject: Array to Hashmap
why we can't avoid hash collision in practice ?
Array of Hashmaps
WA #1.....word association
switch on String
Filling an ArrayList
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014