if(conn != null) { try { conn.close(); } catch(Exception e) { e.printStackTrace(); } conn = null; }写个工具类来关也可以: public static void close...
分类:
数据库 时间:
2014-07-23 15:01:16
阅读次数:
329
The StaircasesTime Limit: 1.0 secondMemory Limit: 16 MBOne curious child has a set ofNlittle bricks (5 ≤N≤ 500). From these bricks he builds different...
分类:
其他好文 时间:
2014-07-23 14:51:36
阅读次数:
225
Labeling Balls
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 10220
Accepted: 2838
Description
Windy has N balls of distinct weights from 1 unit to N unit...
分类:
其他好文 时间:
2014-07-23 13:40:06
阅读次数:
210
【Texture Combiner】 After the basic vertex lighting has been calculated, textures are applied. In ShaderLab this is done usingSetTexturecommand. SetT.....
分类:
其他好文 时间:
2014-07-23 12:51:36
阅读次数:
266
参考下面代码,在Action中加一个方法: 1 // 导出excel 2 public String excel() throws Exception { 3 StringBuffer excelBuf = new StringBuffer(); 4 excelBuf...
分类:
其他好文 时间:
2014-07-23 12:51:16
阅读次数:
193
很多小猿遇到这个Exception 的时候,都会有点无厘头。这个时候最好try-- catch下,找到出错的地方。本人习惯在页面上加个lable标签,把exc msg(exception message)输出的到lable,这样可以省的再调试,直接可以看到错误信息。但有时还是需要去打断点调试,这样才...
分类:
其他好文 时间:
2014-07-23 12:46:56
阅读次数:
197
章出自:luchg技术交流 http://www.luchg.com版权所有。本站文章除注明出处外,皆为作者原创文章,可自由引用,但请注明来源,谢谢。Android-java.lang.RuntimeException: Can't create handler inside thread that...
分类:
移动开发 时间:
2014-07-23 12:42:26
阅读次数:
261
题目:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?题解:这道题连带着II是很经典的,在看CC150时候,纠结这个问题纠结了很久....
分类:
编程语言 时间:
2014-07-23 12:02:26
阅读次数:
311
1.在div元素中,包含了一个元素,通过has选择器获取元素中的元素的语法是?提示使用has $("div:has(span)")2.在三个元素中,分别添加多个元素,通过jQuery中的子元素选择器,将这三个元素中的第一个元素隐藏,代码是?提示使用first-child$("li:first-chi...
分类:
Web程序 时间:
2014-07-23 11:47:16
阅读次数:
230
最近安装了NDK
R8B,但是在cygwin下开始使用ndk-build时出现大量的如题所示的警告。于是,先GOOGLE一下,寻找模糊答案。又到NDK下载网站看
到,NDKR8B确实更新了C++编译器。而且,有网文介绍说,使用NDK
R8不会出现那样的警告。这个,我没有试验,估计OK(因为作者说他自己试验..
分类:
其他好文 时间:
2014-07-23 00:17:58
阅读次数:
178