JAVA¾²Ì¬¿éºÍ·Ç¾²Ì¬¿éµÄÇø±ð
//¾²Ì¬¿é£¨static block£©£ºÈçÏÂËùʾ
public class StaticBlock1
{
static
{
System.out.println("static block");
}
public static void main(String[] args)
{
System.out.println("main");
}
}
/**
¾²Ì¬¿éÊÇÔÚÀà±»µ÷Óõ½ÄÚ´æºó¿ªÊ¼Ö´Ðеģ¬ËüºÍ´´½¨¶ÔÏó»òmain·½·¨¶¼Ã»ÓйØÏµ¡£
Èç¹ûûÓÐmain·½·¨£¬³ÌÐòÈÔÈ»±àÒë³É¹¦£¬µ«ÔËÐдíÎó¡£
ÉÏÀýÖУ¬ÔËÐнá¹ûΪ£ºstatic block
main
*/
·Ç¾²Ì¬¿é£¨non-static block£©
public class NonStaticBlock1
{
{
System.out.println("Non static block");
}
NonStaticBlock1()
{
System.out.println("constructor");
}
public static void main(String[] args)
{
new NonStaticBlock1();
System.out.println("main");
}
}
/**
¾²Ì¬¿éÒ»°ãÓÃÓÚ³õʼ»¯ÀàÖеľ²Ì¬³ÉÔ±£¬¶ø·Ç¾²Ì¬¿éÒ»°ãÓÃÓÚ³õʼ»¯ÀàÖеķǾ²Ì¬³ÉÔ±¡£
ÁíÍ⣬·Ç¾²Ì¬¿éÊÇÔÚ´´½¨¶ÔÏóʱ×Ô¶¯Ö´ÐеĴúÂë¡£
ÉÏÀýÖУ¬ÔËÐнá¹ûΪ£ºNon static block
&nb
Ïà¹ØÎĵµ£º
ʹÓÃpoiÀ´Éú³ÉxlsÎļþ£ºÒýÓõİüpoi-3.2.final.jar;
ÒªÁ˽âµÄÀàHSSFWorkbook,HSSFSheet,HSSFRow,HSSFCell
HSSFWorkbook workbook=new HSSFWorkbook();µÃµ½Ò»¸öExcelÎļþµÄÒýÓÃ
HSSFSheet sheet=workbook.createSheet();µÃµ½Ò»¸ösheet,»¹ÓÐHSSFSheet sheet=workbook.createSheet("sheet1");·½·¨¿ÉÒÔÉèÖÃSheetµÄÃû³Æ¡£
È» ......
StrutsME Ò»¸öÇáÁ¿¼¶µÄÐòÁл¯ÐÒ飬ʹJ2ME¿Í»§¶ËÄܵ÷ÓÃStruts WebÓ¦ÓóÌÐò¡£
http://www.strutsme.org/
JsonME ÇáÁ¿¼¶ÊµÏÖJ2ME Json¡£
http://www.json.org/java/org.json.me.zip
MicroLog ÇáÁ¿¼¶µÄLOG
http://microlog.sourceforge.net/snapshot
Mobile Ajax for Java ME °üÀ¨ÁËXmlHttpRequest£¬jsonµÄÒ ......
Mysql
sudo netstat -tap | grep mysql
µ±ÄúÔËÐиÃÃüÁîʱ£¬Äú¿ÉÒÔ¿´µ½ÀàËÆÏÂÃæµÄÐУº
linuxidc@linuxidc-laptop:~$">linuxidc@linuxidc-laptop:~$ sudo netstat -tap | grep mysql
[sudo] password for linuxidc:
tcp &n ......
http://hi.baidu.com/skeryl/blog/item/d9b74e081e1d423ae92488ac.html
Èç¹ûÓ¦ÓóÌÐòÐèÒª¶¯Ì¬Éú³É PDF Îĵµ£¬ÔòÐèÒª iText ¿â¡£¿ª·ÅÔ´ÂëµÄ iText ¿âʹ PDF ÎĵµµÄ´´½¨Äܹ»ÔÚ˲¼äÍê³É¡£±¾ÎĽéÉÜÁË iText ²¢ÌṩÁËʹÓÃËü´Ó Java ? ¼¼ÊõÓ¦ÓóÌÐòÉú³É PDF ÎĵµµÄÓÉdzÈëÉîµÄÖ¸ÄÏ¡£ÎÒÃÇ´´½¨ÁËÒ»¸öʾÀýÓ¦ÓóÌÐòÒÔ¸üºÃµØÀí½â ......
/**
* »ñµÃʵЧʱ¼ä,µ±Ç°Ê±¼äÍÆ³Ù1¸öÔµÄʱ¼ä<br>
*
* @return
*/
private String getInvalidationTime() {
String invalidationTime ......