Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎĵµ£º

Java´úÂëÉú³ÉºÍ½âÎöxlsÎļþ

ʹÓÃ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µÄÃû³Æ¡£
È» ......

javaÓ¦ÓÃÔ´ÂëºÃÍøÖ·

 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µÄÒ ......

Ubuntu JavaÏà¹ØÈí¼þ°²×° mysql jdk tomcat

Mysql
 sudo netstat -tap | grep mysql
    µ±ÄúÔËÐиÃÃüÁîʱ£¬Äú¿ÉÒÔ¿´µ½ÀàËÆÏÂÃæµÄÐУº
    linuxidc@linuxidc-laptop:~$">linuxidc@linuxidc-laptop:~$ sudo netstat -tap | grep mysql
    [sudo] password for linuxidc:
    tcp &n ......

´ÓJavaÓ¦ÓóÌÐò¶¯Ì¬Éú³ÉPDFÎļþ

 http://hi.baidu.com/skeryl/blog/item/d9b74e081e1d423ae92488ac.html
Èç¹ûÓ¦ÓóÌÐòÐèÒª¶¯Ì¬Éú³É PDF Îĵµ£¬ÔòÐèÒª iText ¿â¡£¿ª·ÅÔ´ÂëµÄ iText ¿âʹ PDF ÎĵµµÄ´´½¨Äܹ»ÔÚ˲¼äÍê³É¡£±¾ÎĽéÉÜÁË iText ²¢ÌṩÁËʹÓÃËü´Ó Java ? ¼¼ÊõÓ¦ÓóÌÐòÉú³É PDF ÎĵµµÄÓÉdzÈëÉîµÄÖ¸ÄÏ¡£ÎÒÃÇ´´½¨ÁËÒ»¸öʾÀýÓ¦ÓóÌÐòÒÔ¸üºÃµØÀí½â ......

java»ñµÃʵЧʱ¼ä,µ±Ç°Ê±¼äÍÆ³Ù1¸öÔµÄʱ¼ä

     /**
     * »ñµÃʵЧʱ¼ä,µ±Ç°Ê±¼äÍÆ³Ù1¸öÔµÄʱ¼ä<br>
     *
     * @return
     */
    private String getInvalidationTime() {
        String invalidationTime ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ