码迷,mamicode.com
首页 >  
搜索关键字:list dict    ( 58606个结果
list集合、txt文件对比的工具类和文件读写工具类
工作上经常会遇到处理大数据的问题,下面两个工具类,是在处理大数据时编写的;推荐的是使用map的方式处理两个list数据,如果遇到list相当大数据这个方法就起到了作用,当时处理了两个十万级的list,使用改方法的变种搞定。 1.txt文件、list集合比较工具 package com.hudong.util.other; import java.util.Collection; import...
分类:其他好文   时间:2014-06-08 18:14:05    阅读次数:326
查看你的Android签名信息-创建签名千万要写全
1. 用命令行来查看签名文件里面的内容 keytool位置 C:\Program Files\Java\jdk1.7.0_51\bin\keytool.exe 命令格式 keytool -list -v -keystore e:/keytool/yushan.keystore -storepass 123456...
分类:移动开发   时间:2014-06-08 18:04:50    阅读次数:273
newLISP list操作
构建一个list注意要标记不要求值,比如用‘ 或者list> (list "a" "b" "c") ("a" "b" "c")或者> '("a" "b" "c") ("a" "b" "c") 查找在一个全是string的list中用正则表达式查找查找第一个匹配到的元素:> (set 'l '("WARNING: org.apache.hadoop.metrics.jvm.EventCounter...
分类:其他好文   时间:2014-06-08 16:23:41    阅读次数:243
Java中List的用法
List接口对Collection进行了简单的扩充。 它的具体实现类常用的有ArrayList和LinkedList。 ArrayList从其命名中可以看出它是以一种类似数组的形式存储,因此它的随机访问速度极快,但插入和移除元素的速度很慢。 LinkedList的内部实现是链表,它适合于在链表中间需要频繁进行插入和删除操作,不适合随机访问,LinkedList可以当作堆栈、队列和双向队列使用...
分类:编程语言   时间:2014-06-08 15:49:22    阅读次数:291
List集合中两种遍历方式
遍历List集合中的元素的方法有两种: 第一种:利用迭代器遍历 代码1: // 迭代器 Iterator it=list.iterator(); while(it.hasNext()) { System.out.println(it.next()); }或者代码2: for(Iterator it=list.iterator();it.hasNext();) { System.o...
分类:其他好文   时间:2014-06-08 15:22:50    阅读次数:189
字典树 Trie (HDU 1671)
Problem Description Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the phone catalogue listed these numbers: 1. Emergenc...
分类:其他好文   时间:2014-06-08 10:31:22    阅读次数:234
自定义PopupWindow实现3急地区联动
做项目时有时我们会需要3级联动,比如注册,买东西下单等,这里我在android上使用popupwindow实现3级联动功能,我实现的思路是,当程序启动时就将后台的地区JSON数据格式全部加载上来,通过SharedPreferences将获取到的数据保存,点击按钮获取SharedPreferences中的地区数据,再通过JSONObject转为List集合,具体实现如下: 布局文件: activ...
分类:Windows程序   时间:2014-06-08 10:29:42    阅读次数:417
Windows 7下解决: java.net.SocketException: No buffer space available (maximum connections reached?)
查了一大堆网上的资料全都没用,Google得知,是Windows 7 的socket泄漏 :https://supportkb.riverbed.com/support/index?page=content&id=S23580&actp=LIST_RECENT补丁下载地址: http://suppo...
分类:编程语言   时间:2014-06-07 22:19:32    阅读次数:857
Linux 内核 链表 的简单模拟(2)
接上一篇Linux 内核 链表 的简单模拟(1) 第五章:Linux内核链表的遍历/*** list_for_each - iterate over a list* @pos: the &struct list_head to use as a loop cursor.* @...
分类:系统相关   时间:2014-06-07 22:09:58    阅读次数:451
数据结构中线性表的基本操作-合并两个线性表-依照元素升序排列
#include#include#define LIST_INIT_SIZE 10/*线性表初始长度*/#define LIST_CREATENT 2/*每次的增量*/typedef int ElemType;using namespace std;typedef struct SqList/*线性...
分类:其他好文   时间:2014-06-07 21:01:21    阅读次数:322
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!