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

[vb]ʹÓÃvbͳ¼Æ.javaµÄÐÐÊý

 ¹¤×÷ÐèÒª£¬Õë¶ÔjavaÎļþ£¬×÷ÁËÒ»¸öÐÐÊýͳ¼ÆµÄ¹¤¾ß¡£Í³¼ÆµÄÖ÷Òª´úÂëÈçÏ£º
    Set srcIn = fso.OpenTextFile(fileNm, ForReading)
    
    Do While Not srcIn.AtEndOfStream
        buf = srcIn.ReadLine
       
        'java×ÜÐÐÊý
        allLinex = allLinex + 1
        'java¿Õ°×ÐÐ
        If Not flg And Trim(Replace(buf, vbTab, "")) = "" Then
            'Debug.Print fileNm & ":" & allLinex
            blankLinex = blankLinex + 1
        End If
        'java×¢ÊÍÐÐ
        If flg Then
            If InStr(buf, "*/") > 0 Then
                flg = False
            End If
            commentLinex = commentLinex + 1
        ElseIf InStr(Trim(Replace(buf, vbTab, "")), "//") = 1 Then
            commentLinex = commentLinex + 1
        End If
        If InStr(Trim(Replace(buf, vbTab, "")), "/*") = 1 Then
            flg = True
            commentLinex = commentLinex + 1
        End If
        If flg An


Ïà¹ØÎĵµ£º

Java СÀý×Ó£ºÐÐÁÐʽºÍ¼¦ÍÃͬÁýÎÊÌâ

¼¦ÍÃͬÁýÎÊÌâ¾ÍÊǶþÔªÒ»´Î·½³Ì×飬¸ßµÈÊýѧÀïÃæÓÃÐÐÁÐʽÀ´½â´Ë·½³Ì¡£¾ßÌå¹ý³Ì¿É Google “ÐÐÁÐʽ ¶þÔªÒ»´Î·½³Ì×é
”¡£¶ÔÓÚ¼¦ÍÃͬÁýÎÊÌ⻹Ҫ¼ÓÉÏÒ»¸öÏÞÖÆ£º·½³ÌµÄ½â±ØÐëÊÇÕýÕûÊý¡£
ÏÂÃæÊÇ´úÂëʾÀý£º
/**
* ¼¦ÍÃͬÁýÎÊÌâ¡£½â·¨Çë Google£º“ÐÐÁÐʽ ¶þÔªÒ»´Î·½³Ì×é”
*
* @author yiding.he
*/ ......

2009ÄêÉϰëÄêµÈ¼¶¿¼ÊÔ¶þ¼¶JAVA¾«Ñ¡ÊÔÌ⸴ϰ

 1. floatÐÍfloat f=3.4ÊÇ·ñÕýÈ·?
¡¡¡¡´ð£º²»ÕýÈ·£¬Ó¦Îªfloat f=3.4f
¡¡¡¡2. µ±Ò»¸ö¶ÔÏó±»µ±×÷²ÎÊý´«µÝµ½Ò»¸ö·½·¨ºó£¬´Ë·½·¨¿É¸Ä±äÕâ¸ö¶ÔÏóµÄÊôÐÔ£¬²¢¿É·µ»Ø±ä»¯ºóµÄ½á¹û£¬ÄÇôÕâÀïµ½µ×ÊÇÖµ´«µÝ»¹ÊÇÒýÓô«µÝ?
¡¡¡¡´ð£ºÊÇÒýÓô«µÝ¡£
¡¡¡¡3. ÔÚjavaÖÐÒ»¸öÀà±»ÉùÃ÷ΪfinalÀàÐÍ£¬±íʾÁËʲôÒâ˼?
¡¡¡¡´ð£º±íʾ¸ÃÀà²»Ä ......

JAVAÃæÊÔ×ÛºÏ

1.J2EEÊÇʲô£¿
  2.½éÉÜJAVAÖеÄCollection FrameWork(°üÀ¨ÈçºÎд×Ô¼ºµÄÊý¾Ý½á¹¹)?
    ÈçCOLLECTIONÖÐÒÅÁôÀà(HASHTABLE¡¢VECTOR)ºÍÏÖÓÐÀàµÄÇø±ð£¿(ͬ²½)
  3.JavaÖÐÒì³£´¦Àí»úÖÆ£¬Ê¼þ»úÖÆ£¿
¡¡
  4.EJBÓëJAVA BEANµÄÇø±ð£¿
     EJBÓëJAVA BEANÊÇSUNµÄ²»Í¬×é¼þ ......

JAVA»ù´¡ÃæÊÔÌâ2

 31¡¢EJB°üÀ¨£¨SessionBean,EntityBean£©Ëµ³öËûÃǵÄÉúÃüÖÜÆÚ£¬¼°ÈçºÎ¹ÜÀíÊÂÎñµÄ£¿
SessionBean£ºStateless Session Bean µÄÉúÃüÖÜÆÚÊÇÓÉÈÝÆ÷¾ö¶¨µÄ£¬µ±¿Í»§»ú·¢³öÇëÇóÒª½¨Á¢Ò»¸öBeanµÄʵÀýʱ£¬EJBÈÝÆ÷²»Ò»¶¨Òª´´½¨Ò»¸öеÄBeanµÄʵÀý¹©¿Í»§»úµ÷Ó㬶øÊÇËæ±ãÕÒÒ»¸öÏÖÓеÄʵÀýÌṩ¸ø¿Í»§»ú¡£µ±¿Í»§»úµÚÒ»´Îµ÷ÓÃÒ»¸öStat ......

String in Java

 ÖÚËùÖÜÖª£¬StringÊÇÓÉ×Ö·û×é³ÉµÄ´®£¬ÔÚ³ÌÐòÖÐʹÓÃÆµÂʺܸߡ£JavaÖеÄStringÊÇÒ»¸öÀ࣬¶ø²¢·Ç»ù±¾Êý¾ÝÀàÐÍ¡£ ²»¹ýËýÈ´²»ÊÇÆÕͨµÄÀàŶ£¡£¡£¡
¡¾¾µÍ·1¡¿ String¶ÔÏóµÄ´´½¨
   1¡¢¹ØÓÚÀà¶ÔÏóµÄ´´½¨£¬ºÜÆÕͨµÄÒ»ÖÖ·½Ê½¾ÍÊÇÀûÓù¹ÔìÆ÷£¬StringÀàÒ²²»ÀýÍ⣺
        & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ