SUPER可调用父类的构造方法,但要注意默认调用和参数调用。同时,在继承类时,可以用SUPER调用其它非构造方法哟。class
Test extends Object{ public Test(){ System.out.println("Test1 First thing");...
分类:
编程语言 时间:
2014-05-26 18:50:48
阅读次数:
325
以我的经验,大部分技术,熟读下列四类书籍即可。入门,用浅显的语言和方式讲述正确的道理和方法,如head
first系列全面,巨细无遗地探讨每个细节,遇到疑难问题时往往可以在这里得到理论解答,如Definitive Guide/Programming
xx系列实践,结合实际中经常遇到的情景环境,来描述...
分类:
其他好文 时间:
2014-05-26 18:49:49
阅读次数:
244
Given an array of non-negative integers, you
are initially positioned at the first index of the array.Each element in the
array represents your maximu...
分类:
其他好文 时间:
2014-05-26 18:46:20
阅读次数:
251
类模板:template struct
pair参数:T1是第一个值的数据类型,T2是第二个值的数据类型。功能:pair将一对值组合成一个值,这一对值可以具有不同的数据类型(T1和T2),两个值可以分别用pair的两个公有函数first和second访问。具体用法:1.定义(构造):1
p...
分类:
编程语言 时间:
2014-05-26 17:54:31
阅读次数:
327
RT;main.xml MyActivity.javapublic class MyActivity
extends Activity { /** * Called when the activity is first created. */ ListView
my...
分类:
移动开发 时间:
2014-05-26 17:04:30
阅读次数:
365
jQuery的serialize()方法通过序列化表单值,创建URL编码文本字符串,我们就可以选择一个或多个表单元素,也可以直接选择form将其序列化,如:First
name: Last name: $(document).ready(function(){ console.log($("f...
分类:
Web程序 时间:
2014-05-25 23:37:11
阅读次数:
388
#第一种基于原生的JDBC的方式实现
private Integer insert(POJO entity, String table) throws SQLException {
String insertSQL = "INSERT INTO " + table + " (XXXX)VALUES(?,?,?,?,?,?,?,?)";
DataSource dataSource = Se...
分类:
系统相关 时间:
2014-05-25 20:45:20
阅读次数:
336
作者:阮一峰
网络应用程序,分为前端和后端两个部分。当前的发展趋势,就是前端设备层出不穷(手机、平板、桌面电脑、其他专用设备......)。
因此,必须有一种统一的机制,方便不同的前端设备与后端进行通信。这导致 API 构架的流行,甚至出现"API First"的设计思想。RESTful A...
【题目】
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start times.
Example 1:
Given intervals [1,3],[6,9], insert and mer...
分类:
其他好文 时间:
2014-05-25 12:56:43
阅读次数:
271
单链表及其ADT
void deleteList(); //删除整个链表
List makeEmpty(List l);//清空链表,只留头结点
int isEmpty(List l);//判断是否为空
int isLast(List l, Position p);//判断是否是最后一个结点
List createList();//创建一个链表
void insert(List l,...
分类:
其他好文 时间:
2014-05-25 07:18:35
阅读次数:
222