码迷,mamicode.com
首页 >  
搜索关键字:list hashmap    ( 60703个结果
C# 轻量级ORM 编写思维
目标:降低研发人员门槛,提高效率,去除重复引用DLL的工作,基础配置由抽象工厂处理。基础扩展/// /// DataTable 转换为List 集合/// /// 类型/// DataTable/// public static List ToList(this DataTable dt) wher...
分类:其他好文   时间:2014-04-30 21:27:46    阅读次数:508
流程实例
1 package com.kite.pi; 2 3 import java.util.List; 4 5 import org.jbpm.api.Configuration; 6 import org.jbpm.api.ProcessInstance; 7 import org...
分类:其他好文   时间:2014-04-30 20:38:40    阅读次数:514
16 ListView
package mars.listview;import java.util.ArrayList;import java.util.HashMap;import android.app.ListActivity;import android.os.Bundle;import android.view...
分类:其他好文   时间:2014-04-30 20:23:44    阅读次数:474
9行代码体现集合框架中的一个小细节
String[] strs = {"string--01", "string--02", "string--03", "string--04"};List strsList = Arrays.asList(strs);//以下语句输出:[string--01, string--02, string-...
分类:其他好文   时间:2014-04-29 11:33:45    阅读次数:345
Java01 常用的linux命令
一、linux 命令 0.man:查询使用手册1.pwd:Print the full filename of the current working directory. 打印当前工作目录(文件夹)2.ls:List information about the FILEs (the current...
分类:编程语言   时间:2014-04-29 11:31:46    阅读次数:489
C#字符串操作 取文本左边 取文本右边 取文本中间 取文本中间到List集合 指定文本倒序
/// /// 取文本左边内容 /// /// 文本 /// 标识符 /// 左边内容 public static string GetLeft(string str, string s) ...
分类:其他好文   时间:2014-04-29 11:26:47    阅读次数:362
java根据标点英文分词
最近学习java字符串部分,用正则表达式做了一个简单的统计单词出现次数的小程序,目前只能统计英文。整个程序包括三个包,分别为output,run,wordcountwordCount包执行单词统计逻辑的工具包,使用HashMap存储某个字符串出现的次数。setPattern用来在类外部设置不同的正则...
分类:编程语言   时间:2014-04-29 10:38:46    阅读次数:594
.net List<T>
List的几个方法List=>List.Find()List.FindAll()List.Contains() List.ForEach()List.ConvertAll() 1. 先比较Find()跟FindAll()。 这个两个函数都是 遍历List的集合,只是 区别在于FindAll()返回的...
分类:Web程序   时间:2014-04-29 10:32:46    阅读次数:443
CloudStack添加新的API注意事项
1、***Cmd上面的@APICommand里的responseObject关联对于的Response;2、在tomcatconf/command.properties.in添加新API的权限;3、为得到Cmd,都需要实现PluggableService接口的getCommands()方法,核心Cm...
分类:Windows程序   时间:2014-04-29 10:24:46    阅读次数:538
list转Dictionary
Dictionarydic=lst.ToDictionary(newFunc(c=>c.Id),newFunc(c=>c.Num));//如果觉得上面的写法太复杂,还可以简化为//Dictionary dic = lst.ToDictionary(c => c.Id, c => c.Num...
分类:其他好文   时间:2014-04-29 10:18:46    阅读次数:339
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!