Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Note:
Given m, n satisfy the...
分类:
其他好文 时间:
2015-01-13 19:52:19
阅读次数:
124
nil:A null pointer to an Objective-Cobject.( #define nil ((id)0) )nil表示一个Objective-C对象,这个对象的指针指向空Nil: A null pointer to an Objective-Cclass.首字母大写的Nil ...
分类:
其他好文 时间:
2015-01-13 19:41:53
阅读次数:
212
第一步 : 初始化PopupWindow private void initPop() { if (view == null) { // 照片 view = View.inflate(RegisterActivity.this, R.l...
public class ShellCommand{ public static void execCmd(String cmd, boolean wait) { execCmd(cmd, wait, null); } public static void execCmd(String cmd, ....
分类:
编程语言 时间:
2015-01-13 17:38:36
阅读次数:
136
实际应用开发时,如果存在需要用户获取大量数据的情况,最好是先判断下网络类型,提示用户当前的网络类型,是否需要连接Wifi,etc.(手机流量太贵啦,当然土豪是无视这玩意的, (/ □ \)).定义网络连接类型:public static final int NETTYPE_NULL = 0x00; ...
分类:
移动开发 时间:
2015-01-13 17:34:49
阅读次数:
133
项目总采用datagird时,产生界面如下图原本标题上有功能按钮,此时消失 错误:SCRIPT5007: 无法获取属性“rowspan”的值: 对象为 null 或未定义, 造成这种错误的原因大致为:(1) 可能是在datagrid里面下的frozenColumns:[[ {......}]]或者是...
分类:
其他好文 时间:
2015-01-13 17:29:24
阅读次数:
430
在Service中使用ThreadLocal来完成事务,为将来学习Spring事务打基础!
1 DAO中的事务
public void xxx() {
Connection con = null;
try {
con = JdbcUtils.getConnection();
con.setAutoCommitted(false);
Query...
分类:
编程语言 时间:
2015-01-13 16:05:28
阅读次数:
176
今天工作时写了一个sql,但是PostgreSQL总是提示有语法错误,简单的做个记录:问题1、'' 和“”单引号和双引号 举个例子: 1 #1、select id, delivery_date, sal_plan_date from zaiko_shop where id="";2...
分类:
数据库 时间:
2015-01-13 15:53:14
阅读次数:
235
定义记录类型语法TYPE 类型名称 IS RECORD (成员名称 数据类型 [[NOT NULL] [:= 默认值] 表达式] ,...成员名称 数据类型 [[NOT NULL] [:= 默认值] 表达式]) ; 示例一、记录类型接收查询返回结果 TYPE EMP_TYPE IS RECORD( ...
分类:
其他好文 时间:
2015-01-13 15:50:59
阅读次数:
133
在使用百度定位SDK的时候,明明已经加入了liblocSDK3.so,Manifest中也添加了相应权限,注册了com.baidu.location.f服务。但总是无法定位。提示错误java.lang.UnsatisfiedLinkError:
Couldn’t load locSDK3: findLibrary returned null.
根据错误提示是无法找到locSD...
分类:
其他好文 时间:
2015-01-13 14:23:10
阅读次数:
162