题目链接 Given an unsorted integer array, find the
first missing positive integer. For example, Given [1,2,0] return 3, and
[3,4,-1,1] return 2. Your algo...
分类:
其他好文 时间:
2014-06-29 07:44:48
阅读次数:
321
1.更改数据库版本号(每次更新都一定要进行版本的升级)
2.更新语句一条一条写,不能并列写
例如:
public void onUpgrade(SQLiteDatabase db, int arg1, int arg2) {
db.execSQL("alter table users add userage integer;alter table users add usersalary ...
分类:
数据库 时间:
2014-06-20 11:43:30
阅读次数:
268
Java集合01----ArrayList的遍历方式及应用
1.ArrayList的遍历方式
a.一般for循环(随机访问)
Integer value = null;
int size = list.size();
for (int i=0; i<size; i++) {
value = (Integer)list.get(i);
}
b.增强型for循环(for...
分类:
编程语言 时间:
2014-06-20 10:22:41
阅读次数:
240
泛型:泛型只是提供给编译器。在编译完之后,生产字节码文件时就擦除类型信息,泛型就不在了泛型的术语:整个Arraylist:称为泛型类型。Arraylist中的E称为类型变量或类型参数整个Arraylisst称为:参数化的类型Arraylist中的Integer称为类型参数的实例。Arraylist中...
分类:
其他好文 时间:
2014-06-11 08:03:03
阅读次数:
265
Evaluate the value of an arithmetic expression
in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be
an integer or another ex...
分类:
其他好文 时间:
2014-06-07 20:34:41
阅读次数:
214
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:
其他好文 时间:
2014-06-07 12:21:30
阅读次数:
284
这个题比较简单,考虑特殊情况如12000,注意检查反转后数字是否会越界溢出。...
分类:
其他好文 时间:
2014-06-07 12:01:08
阅读次数:
258
玩了一下mybatis,网上源码说的不太清楚。自己写了一下。希望对大家有用(spring3+mybatis3+mysql)实体类:package
org.my.entity;public class User { private Integer id; private String na...
分类:
数据库 时间:
2014-06-07 07:14:07
阅读次数:
318
一、Move操作varpSource,pDest:PChar;len:integer;.......................//一些代码Move(pSource,pDest,len);//错误Move(pSource^,pDest^,len);//正确,根据Move函数:
S:=PCha.....
分类:
其他好文 时间:
2014-06-05 16:40:17
阅读次数:
143