Advertisement

1 - 10 of 175 containing alltags:("hashmap") (0.009 seconds)
Hi guys, Does anyone have sample code for me on how to use the Hashmap and List ? Let me explain what I hant to do : I have a list of codes, and these codes have a lot of properties, to give...
Zones: JavaDate Answered: 07/12/2001 Grade: A Views: 0
When using a user-object (i.e. MyClass) as a key in a HashTable or a HashMap, I get null when I call to get(). For example: public class MyClass {   public static final MyClass KEY1 = new MyC...
Zones: JavaDate Answered: 06/20/2002 Grade: A Views: 0
For those iof you who know JDK1.3.1 very well: I am writing a small application where most of the methods involved send/receive lots of parameters. I've decided to encapsulate all of them by sen...
Zones: JavaDate Answered: 03/07/2003 Grade: C Views: 0
I try to save a bounch of key and value pairs onto JavaScript array. But array is not as convenient as hash. Does anybody find a good way to deal with this problem? Thannks
Zones: JavaScriptDate Answered: 06/14/2003 Grade: A Views: 0
I want to use HashMaps as a Cache. This will require that mutiple threads can add to the cache, thus I will need some form of synchronization. I have wrapper object around the HashMap with put, get...
Zones: JavaDate Answered: 12/17/2003 Grade: A Views: 0
import java.util.*; /*  *    LovinsStemmer.java  *    Copyright (C) 2001 Eibe Frank  *  *    This program is free software; you can redistribute it and/or modify  *    it under the terms of...
Zones: Delphi ProgrammingDate Answered: 09/27/2005 Grade: A Views: 0
How could I use this with a HashMap named centralizedMap    public void setEnabled(boolean b) {        for (int i=0; i< getComponentCount(); i++) {             Component c = getComponent(i...
Zones: JavaDate Answered: 05/11/2004 Grade: A Views: 0
Hi, I have a HashMap called userSelection that I want to convert to a java Collection and then after it is passed into a new class, I want to change the collection back to a HashMap.  I work wit...
Zones: JavaDate Answered: 09/28/2004 Grade: A Views: 0
does anyone know the code to retrieve the data stored in a hashmap (ie String, Object) and asign it to an Object and String?
Zones: JavaDate Answered: 10/14/2004 Grade: A Views: 0
Hi Experts!! I have a string of two fields: s = "a b" How can i split s into a map so that a is the key and b the value? Something like: Map m = new HashMap(); m.put(s.split("\\|"); =====> NOT C...
Zones: JavaDate Answered: 11/09/2004 Grade: B Views: 0