码迷,mamicode.com
首页 >  
搜索关键字:list    ( 54897个结果
list.remove(obj)
从一个List中移除重复的数据使用迭代方法会报异常:java.util.ConcurrentModificationExceptionMap temp = new HashMap();for (GroupRule rule : ruleList) { String ruleName = rule.....
分类:其他好文   时间:2014-05-23 05:41:56    阅读次数:187
Xen入门系列三【Xen 管理工具 xm】
xm命令是管理Xen的最基本的工具,可以通过xm--help来获得帮助。1.列出所有正在运行的虚拟操作系统# xm listPS[1]:可缩写为xmli2.启动虚拟机# 通过配置文件启动虚拟机# xm create # 通过虚拟机名称启动虚拟机,虚拟机必需已存在 xm list 中# xm star...
分类:其他好文   时间:2014-05-23 03:49:18    阅读次数:270
播放音乐
1、/* MediaPlayer对象 */ public MediaPlayer mMediaPlayer = null;/* 构建MediaPlayer对象 */mMediaPlayer= new MediaPlayer();/* 播放列表 */ private List mMusicList ....
分类:其他好文   时间:2014-05-22 16:52:35    阅读次数:277
Breaking parallel loops in .NET C# using the Stop method z
List integers = new List() { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };Parallel.ForEach(integers, (int item, ParallelLoopState state) =>{ if (item > 5) { ...
分类:Web程序   时间:2014-05-22 16:03:56    阅读次数:287
Parallel for-each loops in .NET C# z
An IEnumerable objectAn Action of T which is used to process each item in the listList dataList = new List { "this", "is", "random", "sentence...
分类:Web程序   时间:2014-05-22 16:01:17    阅读次数:290
java开始到熟悉103-104
本次内容:linkedlist()此次是承接上次arraylist(),自己实现linkedlist()(内容较少) 1 package list; 2 /** 3 * 自定义linkedlist类 4 * @author acer 5 * 6 */ 7 public clas...
分类:编程语言   时间:2014-05-22 15:27:41    阅读次数:286
分布式缓存
一.为什么选择redis在项目中使用redis做为缓存,还没有使用memcache,考虑因素主要有两点:1.redis丰富的数据结构,其hash,list,set以及功能丰富的String的支持,对于实际项目中的使用有很大的帮忙。(可参考官网redis.io)2.redis单点的性能也非常高效(利用...
分类:其他好文   时间:2014-05-22 15:25:38    阅读次数:324
FireDAC 下的 Sqlite [3] - 获取数据库的基本信息
在空白窗体上添加: TFDConnection, TFDPhysSQLiteDriverLink, TFDGUIxWaitCursor, TMemoprocedure TForm1.FormCreate(Sender: TObject);var List: TStrings; V: Varian.....
分类:数据库   时间:2014-05-21 17:47:06    阅读次数:301
Java 8的类型注解:工具和机会
在以前的Java版本中,开发者只能将注解(Annotation)写在声明中。对于Java 8,注解可以写在使用类型的任何地方,例如声明、泛型和强制类型转换等语句: @Encrypted String data;List strings;myGraph = (@Immutable Graph) tmpGraph; 乍一看,类型注解并不是Java新版本最炫的特性。事实上,注解只是语法!工具...
分类:编程语言   时间:2014-05-21 15:33:25    阅读次数:332
debian 配置apt-get源的方法
编辑/etc/apt/sources.list文件root@debian:~#cat/etc/apt/sources.list##debcdrom:[DebianGNU/Linux7_Wheezy_-OfficialSnapshotamd64LIVE/INSTALLBinary20131013-23:23]/wheezymain#debcdrom:[DebianGNU/Linux7_Wheezy_-OfficialSnapshotamd64LIVE/INSTALLBinary20131013-23:2..
分类:其他好文   时间:2014-05-21 13:03:37    阅读次数:408
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!