/** * put the object into the char map using the char as the key */ Object put(char key, Object value) { if (itemsKeys == null) { itemsKeys = new char[1]; itemsKeys[0] = key; itemsObjs = new Object[1]; itemsObjs[0] = value; return value; }// if first time int index = Arrays.binarySearch(itemsKeys, key); if (index<0) { index = ~index; resize(index); itemsKeys[index] = key; itemsObjs[index] = value; } return itemsObjs[index]; } // put