¾Å javaÃæÏò¶ÔÏó³ÌÐòÉè¼Æ(this¹Ø¼ü×Ö)
¾Å javaÃæÏò¶ÔÏó³ÌÐòÉè¼Æ(this¹Ø¼ü×Ö)
/**
* ÃæÏò¶ÔÏóÖ®ËÄ
* this¹Ø¼ü×Ö×ܽá
*/
/*this¹Ø¼ü×ֵĵÚÒ»ÖÖÓ÷¨*/
//ÔÚ·½·¨Öе÷ÓÃͬÀàÖеķ½·¨,ÕâʱµÄthis¿ÉÒÔÊ¡ÂÔ.
class ThisPointer
{
public void function1()
{
System.out.println("function1 is calling...");
}
public void function2()
{
System.out.println("function2 is calling...");
this.function1();//µ÷ÓÃͬÀàÖеÄfunction1;
//thisÊÇÖ¸,Õâ¸ö¶ÔÏóµÄfunction·½·¨.
}
public void function3()
{
System.out.println("function3 is calling...");
function2();//Ï൱ÓÚthis.function2().´«ÈëµÄÊÇͬһ¸ö¶ÔÏó,ËùÒÔthis¿ÉÒÔÊ¡ÂÔ.
}
}
/*this¹Ø¼ü×ֵĵڶþÖÖÓ÷¨*/
//Ö¸Ã÷ÀàÖÐÓë·½·¨²ÎÊýͬÃûµÄ³ÉÔ±±äÁ¿.
class Pointer
{
private int i;
private String str;
public void function(int i,String str)
{
this.i = i;
this.str = str;
//ͨ¹ýthis,½«function·½·¨ÖÐͬÃûµÄi,strºÍ³ÉÔ±±äÁ¿ÓèÒÔÇø·Ö.
System.out.println("i = " + i + " , " + "str = " + str);
}
}
/*this¹Ø¼ü×ֵĵÚÈýÖÖÓ÷¨*/
//×÷Ϊһ¸ö¶ÔÏó,²ÎÓëµ½ÀàµÄ·½·¨ÖÐ
class Container
{
private String name;
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
private Components com;
public void addComponents()//ÔÚÈÝÆ÷ÖÐÌí¼Ó²¿¼þ,
{
//com = new Components(new Container());
//ËäÈ»ÕâÑùдûÎÊÌâ.µ«±íʾ,ÔÚд´½¨Ò»¸ö²¿¼þµÄͬʱ,ÓÖ´´½¨Ò»¸öÈÝÆ÷,È»ºó½«Ð²¿¼þ¼Óµ½ÐÂÈÝÆ÷ÉÏ.
com = new Components(this);
//ÓÃthis±íʾÕâ¸öÈÝÆ÷ÀàµÄ¶ÔÏó,ËùÒÔÎÒÃÇÿ´Î²úÉúв¿¼þÊÇ,¶¼ÊǼÓÈëµ½Õâ¸öÈÝÆ÷¶ÔÏóÉϵÄ.
System.out.println(" is loading...");
}
}
class Components
{
private Container c;
public Components(Container c)
{
this.c = c;//²¿¼þÀàµÄ¹¹Ôì·½·¨Ö¸Ã÷
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
ÀàµÄ³õʼ»¯ºÍ¶ÔÏó³õʼ»¯ÊÇ JVM ¹ÜÀíµÄÀàÐÍÉúÃüÖÜÆÚÖзdz£ÖØÒªµÄÁ½¸ö»·½Ú£¬Google ÁËÒ»±éÍøÂ磬ÓйØÀà×°ÔØ»úÖƵÄÎÄÕµ¹ÊDz»ÉÙ£¬È»¶øÀà³õʼ»¯ºÍ¶ÔÏó³õʼ»¯µÄÎÄÕ²¢²»¶à£¬ÌرðÊÇ´Ó×Ö½ÚÂëºÍ JVM ²ã´ÎÀ´·ÖÎöµÄÎÄÕ¸üÊÇÏÊÓÐËù¼û¡£
±¾ÎÄÖ÷Òª¶ÔÀàºÍ¶ÔÏó³õʼ»¯È«¹ý³Ì½øÐзÖÎö£¬Í¨¹ýÒ»¸öʵ¼ÊÎÊÌâÒýÈ룬½«Ô´´úÂëת»»³É JVM ×Ö½ÚÂëºó£¬ ......
±¾ÎÄת×Ôhttp://kingsui.javaeye.com/blog/154712
javaµ¼Èëµ¼³öexcel²Ù×÷(jxl)
Java½âÊÍExcelÊý¾Ý£¨jxl.jar°üµÄʹÓã©
¹Ø¼ü×Ö: java excel jxl.jar
jxl.jar °ü
ÏÂÔصØÖ·:
http://www.andykhan.com/jexcelapi/
ÕæʵÏÂÔصØÖ·:
http://www.andykhan.com/jexcelapi/download.html
ÍøÕ¾É϶ÔËüµÄÌØÕ÷ÓÐÈçÏÂÃèÊö£ ......
Willow
ÓÉHuihoo Power¿ª·¢Ïêϸ¿Éµ½ÆäÖÐÎÄÖ÷Ò³²é¿´¡£
¸ü¶àWillowÐÅÏ¢
OpenWFE
OpenWFEÊÇÒ»¸ö¿ª·ÅÔ´ÂëµÄJava¹¤×÷Á÷ÒýÇæ¡£ËüÊÇÒ»¸öÍêÕûµÄÒµÎñ´¦Àí¹ÜÀíÌ×¼þ£ºÒ»¸öÒýÇ棬һ¸ö¹¤×÷ÁÐ±í£¬Ò»¸öWeb½çÃæºÍÒ»¸ö·´Ó¦Æ÷£¨´æ·Å×Ô¶¯´úÀí£©¡£Ëü¿ÉÒÔ¿ÉÒÔ¸úÄãµÄ³ÌÐòºÜºÃµÄ¸øºÏ¡£
¸ü¶àOpenWFEÐÅÏ¢
jBpm
jBpmÊÇÒ»¸ö ......