演义群侠扫盲

1、Map的使用方法:【常用】

put(key,item)包含add和replaceFor

get/getInt/getString包含itemFor

count/hasKey/

keysToArray/toArray 一个key一个item

removeKey/removeAll

2、HashMap的使用方法:【常用】-----dataMap包含mainCmd subCmd 和 消息对照表参数

keys 即 keysToArray

eachKey 遍历key的fuc

values 即内容

getLinkedList 读取array内容

直接用get即可,不用getInt之类的

3、LinkedList的使用方法:【常用】-----模仿链表

add/addFirst/addLast

IIterator: hasNext   next

4、Array的push arr.push({0:1,,1:2})

 

posted @   tinytiny  阅读(167)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示