var gStart, gLength, gCol: Integer;procedure SetRichEdit(aRichEdit: TRichEdit);var fRow, fCol: Integer; fStart, fLength, tStart: Integer;begin fRo...
分类:
其他好文 时间:
2014-09-29 14:01:10
阅读次数:
170
$(".rslides").responsiveSlides({ auto: true, // Boolean: Animate automatically, true or false speed: 500, // Integer: Speed o...
分类:
其他好文 时间:
2014-09-29 13:27:20
阅读次数:
147
最长子序列之和问题算法一:暴力法(时间复杂度:O(N^2))算法描述:依次求从j到i中最大的和,并将最大的和记录在maxValue中,容易理解但是效率低。 1 static int MaxSum1(int[] arr) { 2 int maxValue = Integer.MIN_V...
分类:
其他好文 时间:
2014-09-29 02:24:57
阅读次数:
288
如果我们用了增强补全功能时有时候打代码
String ss时却打出了String ssString;
Integer i 却打出了 Integer integer;
很麻烦。
这个问题主要由于这包的关系
org.eclipse.jface.text
大家只要找到自己的Eclipse或者MyEclipse中plugs文件夹内该包对应的版本。去网上下载源码。将
org/ecl...
分类:
系统相关 时间:
2014-09-29 00:21:07
阅读次数:
286
Beautiful PeopleTime Limit: 5000msMemory Limit: 32768KBThis problem will be judged onZJU. Original ID:231964-bit integer IO format:%lld Java class nam...
分类:
其他好文 时间:
2014-09-28 22:44:35
阅读次数:
240
今天做功能,处于小心的习惯,打印了一下两个Integer比较的语句,发现了一个问题:为了防止不小心掉入这样的陷阱,对于基本类型的比较,用“==”;而对于基本类型的封装类型和其他对象,应该调用public boolean equals(Object obj)方法(复杂对象需要自己实现equals方法)...
分类:
其他好文 时间:
2014-09-28 21:44:05
阅读次数:
130
Oracle中序列Sequence的创建语法如下:CREATE SEQUENCE [ schema. ] sequence [ { INCREMENT BY | START WITH } integer | { MAXVALUE integer | NOMAXVALUE } | { MI...
分类:
其他好文 时间:
2014-09-28 20:41:05
阅读次数:
211
在Hibernate2.0之前版本list.get(0)返回的是Integer类型.但是在Hibernate3.0以后版本list.get(0)返回的是Long类型.publicIntegergetUsersCount(){
Stringhql="selectcount(*)fromUsers";
Listlist=super.pageQuery(hql);
Numbernum=(Number)list.get(0);
returnnum.intValue();
}
分类:
系统相关 时间:
2014-09-28 19:13:06
阅读次数:
227
题目描述:Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another ex...
分类:
其他好文 时间:
2014-09-28 11:27:51
阅读次数:
164
Java 1.5中引入了自动装箱和拆箱机制
自动装箱:(看代码)
// 自动装箱:把基本类型用它们所对应的引用类型包装起来,使它们具有对象的属性
Integer integer_a = 8;
自动拆箱:(看代码)
//自动拆箱:将Interger这样的引用类型的对象重新简化为基本类型的数据
int a = new Integer(8);
注意:自动装箱...
分类:
编程语言 时间:
2014-09-28 02:26:10
阅读次数:
270