二十一、提交java代码前应该检查是否有没用的语句,如:System.out.println(); jsp页面上面是否有alert调试信息 不规范示例:暂无
规范实例:暂无 解析:因为如果保留了有可能会影响到程序正常运行的结果,如: for(int i=0;i<10;i++){ Sy...
分类:
编程语言 时间:
2014-05-23 09:44:57
阅读次数:
233
常用快捷键:Debug:F8 Stop debugger:Shift + F8 Toggle
breakpoint:F5 Next line:F7 Step into:Shift + F7 Step out:Ctrl + F7Run to C...
分类:
其他好文 时间:
2014-05-22 03:29:01
阅读次数:
381
lmysql有六处使用了字符集,分别为:client
、connection、database、results、server
、system。?client是客户端使用的字符集。?connection是连接数据库的字符集设置类型,如果程序没有指明连接数据库使用的字符集类型就按照服务器端默认的字符集设...
分类:
数据库 时间:
2014-05-22 02:27:03
阅读次数:
278
=> build/tools/zipalign:
out/host/linux-x86/bin/zipalign (host)=> build/tools/atree:
out/host/linux-x86/bin/atree (host)=> build/tools:=> build/to...
分类:
移动开发 时间:
2014-05-22 00:26:32
阅读次数:
2792
为了测试mysql的索引,要向数据库先插入上万条数据,然后再测试。手动插入太麻烦,写了一段代码。先上代码:package action;import
java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet...
分类:
数据库 时间:
2014-05-21 21:20:16
阅读次数:
374
在查看alert日志的时候发现: 1
*********************************************************************** 2 3
Fatal NI connect error 12170. 4 5 VERSION INFORMATI...
分类:
其他好文 时间:
2014-05-21 20:13:32
阅读次数:
298
先来看一段代码: public static void main(String[] args) {
new Timer().schedule(new TimerTask() {
@Override
public void run() {
System.out.println("阳光小强");
}
}, 5000);
int i = 0;
wh...
分类:
移动开发 时间:
2014-05-21 16:56:51
阅读次数:
296
public class setZero {
static void print(int [][]a){
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
System.out.print(a[i][j]+" ");
}
System.out.println();
}
}
/*stati...
分类:
其他好文 时间:
2014-05-21 16:16:56
阅读次数:
252
Description
A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z = is a subsequence of X if there exists a ...
分类:
其他好文 时间:
2014-05-21 10:58:39
阅读次数:
237
在项目开发中,使用SQLite一不小心就会碰到各种DB异常,网上搜了下没有这方面的资料,写出来记录下。异常信息:android.database.sqlite.SQLiteMisuseException:
library routine called out of sequence: , while...
分类:
数据库 时间:
2014-05-21 03:12:20
阅读次数:
1023