参考博文:http://blog.csdn.net/gxf212/article/details/3510009class Base { static int
a = 1; public Base() { System.out.println(" 55555"); }...
分类:
编程语言 时间:
2014-05-09 10:45:09
阅读次数:
309
当网页被加载时,浏览器会创建页面的文档对象模型(Document Object
Model)。//显示,改变html内容document.getElementById("p1").innerHTML="New
text!";//显示,改变html属性document.getElementById("...
分类:
其他好文 时间:
2014-05-09 10:37:09
阅读次数:
254
public class SelectPicActivity extends Activity
implements OnClickListener{/**** 使用照相机拍照获取图片*/public static final int
SELECT_PIC_BY_TACK_PHOTO = 1;/**...
分类:
其他好文 时间:
2014-05-09 05:17:46
阅读次数:
407
首先语法定义上的区别:静态变量前要加static关键字,而实例变量前则不加。在程序运行时的区别:实例变量属于某个对象的属性,必须创建了实例对象,其中的实例变量才会被分配空间,才能使用这个实例变量。静态变量不属于某个实例对象,而是属于类,所以也称为类变量,只要程序加载了类的字节码,不用创建任何实例对象...
分类:
编程语言 时间:
2014-05-09 05:03:46
阅读次数:
321
1 2 import java.awt.*; 3 import javax.swing.*; 4
import java.awt.event.*; 5 6 class WindowActionEvent extends JFrame 7 { 8
JTextField text;...
分类:
编程语言 时间:
2014-05-09 04:43:08
阅读次数:
289
Android 和 PHP 之间进行数据加密传输[代码] [Java]代码1 mcrypt = new
MCrypt();2 /* Encrypt */3 String encrypted = MCrypt.bytesToHex(
mcrypt.encrypt("Text to E...
分类:
移动开发 时间:
2014-05-09 04:31:05
阅读次数:
442
1 public class T008 { 2 public static void
main(String[] args) { 3 int[] num = { 3, 4, 5, 1, 2 }; 4
System.out.println(min(num, 5...
分类:
编程语言 时间:
2014-05-09 04:12:47
阅读次数:
326
1.循环 1 public class T009 { 2 public static void
main(String[] args){ 3 System.out.println(fibonacci(3)); 4 } 5 public static
long ...
分类:
编程语言 时间:
2014-05-09 03:58:09
阅读次数:
270
public class Factory {private static Properties
props = new Properties();static{InputStream ips =
Factory.class.getClassLoader().getResourceAsStream("...
分类:
其他好文 时间:
2014-05-09 03:55:41
阅读次数:
243
因为在做个小标签的时候需要将部分字符旋转180度,在scn上找了很久也发布了自己的提问,不过最终的结果却不尽人意。Rotated
text in smartforms need use the PCL to control the printer,But part of our
printers w...
分类:
其他好文 时间:
2014-05-08 22:32:20
阅读次数:
471