九、工具类,启动所有远程服务的浏览器 在utils包中创建java类:LaunchAllRemoteBrowserspackage com.lingfeng.utils;import java.net.MalformedURLException;import java.util.HashMap;i....
分类:
编程语言 时间:
2015-02-13 16:25:08
阅读次数:
1211
1. Two Sum 最基础的一道题,方法很多,用HashMap存pair是一种(HashSet和HashMap的方法在这里原理是一样的)。也可以sort the whole array first,then use two pointers, one start from the left sid...
分类:
其他好文 时间:
2015-02-13 13:00:58
阅读次数:
127
HashMap的key一定要重写hashCode和equals方法
分类:
其他好文 时间:
2015-02-13 09:15:18
阅读次数:
133
关于PHP扩展memcache和memcached的区别Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态、数据库驱动网站的速度。Memcached基于一个存储键/值对的hashmap。其守护...
分类:
系统相关 时间:
2015-02-12 20:08:20
阅读次数:
226
//简单的map对象
Map map = new HashMap();
map.put("aa", "你好");
map.put("bb","中国");
request.setAttribute("person1", map);
//把map放入request域对象,真正的时候是有另一个控制器传送过来的,在这里...
分类:
Web程序 时间:
2015-02-12 14:06:34
阅读次数:
195
1.客户端向服务器传递参数中有的需要传递Json格式数据,现提供个HashMap转json格式数据方法 public static String hashjson(HashMap map) { String string = "[{"; for (Iterator...
分类:
Web程序 时间:
2015-02-12 12:17:34
阅读次数:
136
publicclassMyActivityextendsActivity{
/**Calledwhentheactivityisfirstcreated.*/
SoundPoolsp;//得到一个声音池引用
HashMap<Integer,Integer>spMap;//得到一个map的引用
Buttonb1;//声音播放控制按钮
Buttonb1Pause;//声音暂停控制按钮
Buttonb2;//声音播放控制按钮..
分类:
移动开发 时间:
2015-02-11 18:57:40
阅读次数:
188