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...
http://www.experts-exchange.com/Programming/Languages/Java/Q_20117780.html
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...
http://www.experts-exchange.com/Programming/Languages/Java/Q_20313788.html
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...
http://www.experts-exchange.com/Programming/Languages/Java/Q_20529423.html
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
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_20638391.html
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...
http://www.experts-exchange.com/Programming/Languages/Java/Q_20693361.html
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...
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_20903653.html
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...
http://www.experts-exchange.com/Programming/Languages/Java/Q_20986226.html
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...
http://www.experts-exchange.com/Programming/Languages/Java/Q_21129688.html
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?
http://www.experts-exchange.com/Programming/Languages/Java/Q_21168794.html
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...
http://www.experts-exchange.com/Programming/Languages/Java/Q_21196877.html
Zones:
JavaDate Answered: 11/09/2004 Grade: B Views: 0