1、new Thread的弊端 执行一个异步任务你还只是如下new Thread吗?Java1234567new Thread(new Runnable() {@Overridepublic void run() {// TODO Auto-generated method stub}}).star...
分类:
编程语言 时间:
2014-10-20 21:06:29
阅读次数:
227
用反射的形式来执行以下代码new String(new StringBuffer("abc"));public static void main(String[] args) throws Exception { // TODO Auto-generated method stub // 运用反射的...
分类:
编程语言 时间:
2014-10-20 13:05:04
阅读次数:
160
package com.test;//多态性public class test4 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Anima...
分类:
编程语言 时间:
2014-10-20 11:25:52
阅读次数:
206
package com.test;//方法重写(overwrite)public class test3 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method ...
分类:
编程语言 时间:
2014-10-20 00:42:02
阅读次数:
297
//说明继承的必要性package com.test;public class test { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub ...
分类:
编程语言 时间:
2014-10-20 00:39:36
阅读次数:
352
Findbugs报错: A prepared statement is generated from a nonconstant String The code creates an SQL prepared statement from a nonconstant String. If unchecked, tainted data from a user is used in bu...
分类:
其他好文 时间:
2014-10-16 13:07:22
阅读次数:
209
# Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3...
分类:
编程语言 时间:
2014-10-15 23:13:51
阅读次数:
245
CF:Carry Flag.The most recent operation generated a carry out of the most significant bit.Used to detect overflow for unsigned operations.ZF:Zero Flag...
分类:
其他好文 时间:
2014-10-11 11:28:15
阅读次数:
158
请尊重他人的劳动成果,转载请注明出处:Android开发之裁剪照片
1. 从相册选择照片进行裁剪
从相册选择照片并裁剪:
/**
* 从相册选择照片进行裁剪
*/
private void cropFromGallery() {
// TODO Auto-generated method stub
Intent intent=new Inte...
分类:
移动开发 时间:
2014-10-10 00:14:01
阅读次数:
411
https://tools.percona.com/按网站上提示设置,一共7步。# Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208# Configuration n...
分类:
数据库 时间:
2014-10-09 14:33:44
阅读次数:
202