1. json 转为List: 下载Gson.jar包,导入到lib中 Gson gson=new Gson(); List<String> mList=gson.from(JsonObject object,new TypeToken<List<String>.getType()>); 2.Lis ...
分类:
Web程序 时间:
2016-07-15 00:06:13
阅读次数:
154
Fiddlercore 使用说明Fiddlercore不保留session序列,因此要自己保存。并且要注意网页session不会被垃圾回收,因为oAllSessions List保持活动引用,因此要时常trim。另一种选择,若仅仅关系请求url或者请求头,只保存一个list<>而不是存储对全sess ...
分类:
其他好文 时间:
2016-07-14 23:49:41
阅读次数:
467
一.LinkedList介绍 LinkedList也和ArrayList一样实现了List接口,但是它执行插入和删除操作时比ArrayList更加高效,因为它是基于链表的。基于链表也决定了它在随机访问方面要比ArrayList逊色一点。 除此之外,LinkedList还提供了一些可以使其作为栈、队列 ...
分类:
编程语言 时间:
2016-07-14 17:28:15
阅读次数:
240
组合(Composite)模式又叫部分·整体模式,主要用于实现树形结构。 例子如下: public class TreeNode{ private TreeNode parent; private String name; private List<TreeNode> children = new ...
分类:
其他好文 时间:
2016-07-14 14:57:46
阅读次数:
136
数组转成list:
方法一:
String[] userid = {"aa","bb","cc"};
List userList = new ArrayList();
Collections.addAll(userList, userid);
方法二:
String[] userid = {"aa","bb","cc"};
List userList ...
分类:
编程语言 时间:
2016-07-14 10:26:34
阅读次数:
184
做C#的同学们,都知道,一类只能有一个继承类,但可以实现多个接口。这句话就告诉我们:IEnumerable,ICollection,IList,List区别了 首先我看看 IEnumerable: IEnumerable<T> 实现IEnumerable接口方法,那IEnumberable做什么的, ...
分类:
编程语言 时间:
2016-07-14 09:59:13
阅读次数:
188
Reverse Linked List、Reverse Linked List II、Odd Even Linked List、Reorder List、Swap Nodes in Pairs、Reverse Node in k-Group ...
分类:
其他好文 时间:
2016-07-14 08:34:22
阅读次数:
286
Given an integer array (index from 0 to n-1, where n is the size of this array), and an query list. Each query has two integers [start, end]. For each ...
分类:
其他好文 时间:
2016-07-14 07:12:55
阅读次数:
252
Insert Intervals Given a non-overlapping interval list which is sorted by start point. Insert a new interval into it, make sure the list is still in o ...
分类:
其他好文 时间:
2016-07-14 07:11:02
阅读次数:
262
应用: 延伸阅读: PHP array_multisort() 函数详解 及 二维数组排序(模拟数据表记录按字段排序) ...
分类:
编程语言 时间:
2016-07-14 07:05:02
阅读次数:
126