码迷,mamicode.com
首页 >  
搜索关键字:list    ( 54897个结果
Android开发中相见恨晚的方法、类或接口
摘抄、整理加个人总结,感谢所有参与者! 1.      Resources类中的getIndentifier(name,defType,defPackage)方法,根据资源名次获取其ID; 2.      Array类中的asList(T…array)方法,数组转List集合; 3.      View类的callOnClick(),performClick()和performLongCli...
分类:移动开发   时间:2015-08-01 14:21:50    阅读次数:157
hdu 1671 Phone List 字典树
// hdu 1671 Phone List 字典树 // // 题目大意: // // 有一些电话号码的字符串长度最多是10,问是否存在字符串是其他字符串的前缀 // // // 解题思路: // // 字典树,先插入第一个字符串,然后按照查询,插入的方式进行访问,发现了之后 // 就不用再进行字典树的操作了 // // // 感悟: // // 题目意思很清楚,我在细节方面思考了很久,...
分类:其他好文   时间:2015-08-01 12:58:31    阅读次数:162
python去重(针对密码)
#coding:utf-8#author:Blood_Zeroimport retmp_list=[]f=open("E:/ASP.txt","r")f1=f.readlines()for i in f1: rule=re.compile('\W') i=re.sub(rule,'',i...
分类:编程语言   时间:2015-08-01 12:53:03    阅读次数:148
EventBus 《三》 事件的具体用法及其讲解
Post事件: 直接调用`EventBus.getDefault().post(Event)就可以发送事件,根据Event的类型就可以发送到相应事件的订阅者。 publicvoid post(Object event) { PostingThreadState postingState = currentPostingThreadState.get(); List ev...
分类:其他好文   时间:2015-08-01 11:38:03    阅读次数:126
Remove Linked List Element
1 public static ListNode removeElement(ListNode head, int val) { 2 if (head == null) return null; 3 4 ListNode dummy = new L...
分类:其他好文   时间:2015-08-01 11:19:38    阅读次数:98
在springmvc项目中使用kaptcha生成验证码
Kaptcha验证码 下载kaptcha-2.3.2.jar http://code.google.com/p/kaptcha/downloads/list 1.spring 配置文件?applicationContext.xml [html] ???? ????<bean?id="captchaProducer"?class="com.google...
分类:编程语言   时间:2015-08-01 10:10:14    阅读次数:143
【LeetCode-面试算法经典-Java实现】【061-Rotate List(旋转单链表)】
【061-Rotate List(旋转单链表)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a list, rotate the list to the right by k places, where k is non-negative.   For example:   Given 1->2->3->4->5->NULL and k = 2,...
分类:编程语言   时间:2015-08-01 07:45:38    阅读次数:164
redis --初级笔记
Redisremotedirectoryserver(redis),是一个基于key-value键值对的持久化数据库存储系统,redis支持数据的存储更丰富,包括string,list,setzset等。这些数据类型都支持push、pop,add,remove及取交集,差集等更丰富的操作,而且这些操作都是原子性的,在此基础上支持不同的排..
分类:其他好文   时间:2015-08-01 06:38:43    阅读次数:159
用service在后台开线程+广播做一个计时器
1.首先写一个服务,在onStartCommand方法里开启线程,每次startService就会调一次onStartCommand方法importjava.util.List;importandroid.app.Notification;importandroid.app.NotificationManager;importandroid.app.PendingIntent;importandroid.app.Service;importandroid.c..
分类:编程语言   时间:2015-08-01 06:37:14    阅读次数:135
把 Mac 上的 bash 换成 zsh
本人补充:mac版git下载地址:http://code.google.com/p/git-osx-installer/downloads/list?can=3&q=&sort=-uploaded&colspec=Filename+Summary+Uploaded+Size+DownloadCoun...
分类:系统相关   时间:2015-08-01 00:59:53    阅读次数:232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!