Tag Archives: HashMap

Java: Map遍历

// 2. 遍历map中所有的元素
Iterator iter = mapSheet.entrySet().iterator();
while(iter.hasNext()) {
Entry entry = iter.next();
int sheetIndex = entry.

More…

Posted in Java | Tagged , , | 1 Comment

在ActionScript 中使用HashMap – Use HashMap in ActionScript

HashMap:
HashMap的key必须为String类型, 如果要使用任意类型的key, 应选择使用Dictionay而非HashMap
主要操作如下:

private function init():void {
//新建对象
var obj:Object = new Objec

More…

Posted in ActionScript, Flex | Tagged , | 2 Comments