码迷,mamicode.com
首页 >  
搜索关键字:list    ( 54897个结果
Android代码资源的国际化
internationalization (国际化)简称 i18n,因为在i和n之间还有18个字符,localization(本地化 ),简称L10n。 一般用语言_地区的形式表示一种语言,如  zh_CN, zh_TW.   各国语言缩写  http://www.loc.gov/standards/iso639-2/php/code_list.php 国家和地区简写 http://www...
分类:移动开发   时间:2015-07-30 00:47:18    阅读次数:250
git一些常用设置
1.查看config git config --list 可以列出所有config配置 1 user.email=tang_m_cong@163.com 2 user.name=thomas 3 core.editor=vim 4 alias.co=checkout 5 alias.br=bra.....
分类:其他好文   时间:2015-07-30 00:34:36    阅读次数:210
vector\list\deque的选取
下面是选择顺序容器类型的一些准则          1、 如果我们需要随机访问一个容器则vector要比list好得多 。        2、 如果我们已知要存储元素的个数则vector 又是一个比list好的选择。          3、如果我们需要的不只是在容器两端插入和删除元素则list显然要比vector好          4、除非我们需要在容器首部插入和删除元素否则vect...
分类:其他好文   时间:2015-07-29 23:07:48    阅读次数:162
LeetCode——Delete Node in a Linked List
Description:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 ...
分类:其他好文   时间:2015-07-29 22:47:19    阅读次数:146
List myList=new ArrayList()的理解
ArrayList不是继承List接口,是实现了List接口。你写成ArrayList arrayList = new ArrayList();这样不会有任何问题。和List list = new ArrayList();相比这2个写是有区别的。arrayList是一个ArrayList对象,它可以...
分类:其他好文   时间:2015-07-29 22:40:32    阅读次数:123
容器使用笔记(扩展篇)
我们从数据的角度将它们分为两类一维集合和二维集合(这里不讨论数组),一维集合主要包括ArrayList、List,二维集合主要包括HashTable、Dictionary,其它类型(使用较少)不做讨论。...
分类:其他好文   时间:2015-07-29 21:21:30    阅读次数:123
19.Remove Nth Node From End of List(List; Two-Pointers)
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:其他好文   时间:2015-07-29 21:02:12    阅读次数:84
C#实现树结构
public?class?TreeNode?:?IEnumerable ????{ ????????public?TreeNode() ????????{ ????????????Childs?=?new?List<TreeNode>(); ????????} ??????...
分类:Windows程序   时间:2015-07-29 19:54:52    阅读次数:140
搜索结果页面关键字加红加粗
后台代码List<Notice>nlist=query.list(); for(Noticenotice:nlist){ notice.setTitle(notice.getTitle().replaceAll(keyword,"<fontcolor=‘red‘><B>"+keyword+"</B></font>")); }参考文章:http://bbs.csdn.net/topics/260004056if(key!=null){..
分类:其他好文   时间:2015-07-29 19:36:41    阅读次数:114
用泛型的extends影响struts2的数据封装
我有两个父子关系的类Mzcz(父类)Mzczmx(子类)在父类中定义了子类的集合属性Mzcz中List<?extendsMzcz>lstMzczmxs=newArrayList<Mzczmx>();集合中可以存放Mzcz子类。所以这个集合可以存放Mzczmx.但是当我从前台传数据的时候出现了问题。如下:<inputtype="tex..
分类:其他好文   时间:2015-07-29 19:34:55    阅读次数:125
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!