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
Win a copy of
Meteor in Action
this week in the
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
Setting ResultSet into an ArryList
Alternate to Singleton pattern
confused on the modeling and handling of bi-directional many to many relationship
Applet and Servlets: Redirecting to Servlet inside an Applet
Referencing an object
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015