在类中定义的集合类型如下:
private String [] arryStr;
private List list;
private Map map;
private Map userMap;
private Map arrayMap;
private Map> userListMap;
private List olist;
对应的在jsp页面中使用struts2标签...
分类:
其他好文 时间:
2015-07-31 14:51:08
阅读次数:
136
开发IOS项目的时候,有可能会遇到两个APP应用相互调用的需求,比如说:支付宝支付......等等。下面来详细介绍实现的步骤:1,添加URL Types项a,打开项目中info.plist文件,在infomation property list项下面增加一项URL Typs2,配置URL Schem...
分类:
移动开发 时间:
2015-07-31 14:30:42
阅读次数:
171
Given a singly linked list, determine if it is a palindrome.
Follow up:
Could you do it in O(n) time and O(1) space?
实现;
bool isPalindrome(ListNode* head) {
if (head == NULL || he...
分类:
其他好文 时间:
2015-07-31 13:11:34
阅读次数:
115
ls是『list』的意思,重点在显示文件的文件名与相关属性。而选项『-al』则表示列出所有的文件详细的权限与属性 (包含隐藏档,就是文件名第一个字符为『 . 』的文件)。
第一栏代表这个文件的类型与权限(permission):
第一个字符代表这个文件是『目录、文件或链接文件等等』:
当为[ d ]则是目录,例如上表档名为『.gconf』的那一行;
当为[ - ...
分类:
系统相关 时间:
2015-07-31 13:10:29
阅读次数:
148
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.Analyse: the core idea of this problem is...
分类:
其他好文 时间:
2015-07-31 12:52:11
阅读次数:
108
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
分类:
其他好文 时间:
2015-07-31 12:16:43
阅读次数:
85
转自:http://blog.csdn.net/truexf/article/details/17303263一、vectorvector采用一段连续的内存来存储其元素,向vector添加元素的时候,如果容量不足,vector便会重新malloc一段更大的内存,然后把原内存中的数据memcpy到新的...
分类:
编程语言 时间:
2015-07-31 10:14:40
阅读次数:
157
反序列化(path为xml文件路径) 1 public static List GetXmlData(string path) 2 { 3 if (File.Exists(path)) 4 { 5 Xm...
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.
分析:注意k有可能会大于list的长度,所以先求出list...
分类:
其他好文 时间:
2015-07-31 06:41:05
阅读次数:
119
Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?先找到链表中点,将第二部分反转,然后比较两部分链表的值。/** * De...
分类:
其他好文 时间:
2015-07-31 06:36:32
阅读次数:
91