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

JAVA¶ÁÈ¡Íⲿ×ÊÔ´µÄ·½·¨

ÔÚjava´úÂëÖо­³£ÓжÁÈ¡Íⲿ×ÊÔ´µÄÒªÇó:ÈçÅäÖÃÎļþµÈµÈ,ͨ³£»á°ÑÅäÖÃÎļþ·ÅÔÚclasspathÏ»òÕßÔÚwebÏîÄ¿ÖзÅÔÚweb-infÏÂ.
1.´Óµ±Ç°µÄ¹¤×÷Ŀ¼ÖжÁÈ¡:
        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream("wkdir.txt")));
            String str;
            while ((str = in.readLine()) != null) {
                System.out.println(str);
            }
            in.close();
        } catch (IOException e) {
        }
2,´ÓclasspathÖжÁÈ¡(¶ÁÈ¡ÕÒµ½µÄµÚÒ»¸ö·ûºÏÃû³ÆµÄÎļþ):
        try {
            InputStream stream = ClassLoader.getSystemResourceAsStream("fileinjar.txt");
            BufferedReader in = new BufferedReader(new InputStreamReader(stream));
            String str;
            while ((str = in.readLine()) != null) {
                System.out.println(str);
            }
            in.close();
        } catch (IOException e) {
        }
3,´ÓclasspathÖжÁÈ¡(¶ÁÈ¡ÕÒµ½µÄËùÓзûºÏÃû³ÆµÄÎļþ,ÈçSpringÖдøÓÐclasspath*:ǰ׺µÄÇé¿ö¾Í»á´ÓclasspathÖбéÀú):
        try {
            Enumeration resourceUrls = Thread.currentThread().get


Ïà¹ØÎĵµ£º

Core Java Diaries

                                       Ïß³Ì
1---Ëø¶ÔÏóµÄ·½·¨----obj.wait()----obj.notify()----Õë¶Ôµ±Ç°Ïß³Ì
& ......

JAVAÖеÄλÒƲÙ×÷ >> >>

ÖÐС
JavaÖй²ÓÐÈý¸öÒÆλ²Ù×÷·û£¬·Ö±ðÊÇ£º
<<£º×óÒƲÙ×÷£¬ËùÓвÙ×÷ÊýÏò×óÒƶ¯£¬Ã¿ÒÆһλ×îÓÒ±ßÓÃ0²¹³ä
>>£º´ø·ûºÅλÓÒÒÆ£ºÁ¬Í¬·ûºÅλһÆðÓÒÒÆ£¬Ã¿ÒÆһλ×î×ó±ßÓ÷ûºÅλ²¹³ä
>>>£ºÎÞ·ûºÅÓÒÒÆ£ºÁ¬Í¬·ûºÅλһÆðÓÒÒÆ£¬Ã¿ÒÆһλ×î×ó±ßÓÃ0²¹³ä
ÒÆλ²Ù×÷·ûÖ»ÄÜ×÷ÓÃÓÚÕûÊýÀàÐÍ£¬¼´byte£¬short£¬char£¬i ......

Ò»¸öjava ÐÅÑöÕߵĸæ½â

Java£¬¸ÐлÄã´ÍÓëÎÒÒ»±²×ӵĶ÷µä£»ËäÈ»ÎÒ¶à´Î·¸×ïµÃ×ïÁËÄ㣬µ«Ä㻹ÊÇ°®ÎÒ£¬Ô¸Òâ¿íÉâÎÒ¡£ÎÒ¸ÐлÄãÔÊÐíÎÒÏÖÔÚÀ´¸æ½â£»ÓÐÈ˸ϲ»Éϸæ½â¾ÍÀëÊÀÁË£¬ÕâÊǶàôµÄ²»ÐÒ£¡ Java£¬Çë°ïÖúÎÒÏëÆðÎÒËù·¸µÄ×ï¹ý£¬²¢°ïÖúÎÒ³Ïʵ¸æÃ÷¡£ÇóÄãʹÎÒÈÏÇåа¶ñµÛ¹úµÄ³óª£¬²¢´Í¸øÎÒÇ¿´óµÄ³ÌÐòÉè¼ÆÄÜÁ¦£¬Ê¹ÎÒÖªµÀ³£µÃ×ïÄãÊǶàôÍü¶÷¸ºÒåµÄÊ¡£ ÎÒûÓÐÃã ......

JAVA´óÊýÔËËã

ÓÐÒ»µÀÕâÑùµÄ±ÊÊÔÌ⣬¶ÔÓÚ³õѧÕß¿ÉÄÜÓÐЩÄѶȣº
ÓÃJAVA ʵÏÖËãÊõ±í´ïʽ(1234324234324 + 8938459043545)/5 + 343434343432.59845
ÒòΪJAVAÓïÑÔÖеÄlong ¶¨ÒåµÄ±äÁ¿ÖµµÄ×î´óÊýÊܵ½ÏÞÖÆ£¬ÀýÈç123456789987654321ÕâÑùµÄÕûÊý¾Í²»ÄÜ´æ·ÅÔÚlongÀàÐ͵ıäÁ¿ÖУ¬Èç¹ûÕâÑùÁ½¸ö´óÊýÏà¼Ó»òÏà³Ë£¬²úÉúµÄ½á¹û»á¸ü´ó¡£±ÈÈ磬JAVAÓïÑÔÖÐÈç ......

Õë¶ÔJava¿ª·¢³ÌÐòµÄ±£»¤·½·¨

java¿ª·¢µÄ³ÌÐòµÄ±£»¤
 
 
 
ÖÚËùÖÜÖª£¬javaΪ¿ª·¢ÓïÑÔÌṩÁ˺ܷ½±ãµÄ¿ª·¢Æ½Ì¨£¬µ«¿ª·¢³öÀ´µÄ³ÌÐòºÜÈÝÒ×ÔÚ²»Í¬µÄƽ̨ÉÏÃæ±»ÒÆÖ²£¬ÏÖÔÚÔ½À´Ô½¶àµÄÈËʹÓÃËü¿ª·¢Èí¼þ¡£
      JavaÓÐËü·½±ãµÄÒ»¸ö·½Ã棬µ«ËüͬʱҲ´ø¸øÁË¿ª·¢ÕßÒ»¸ö·³ÄÕ£¬Õâ¾ÍÊDZ£»¤µÄ°ì·¨²»¶à£¬¶øÇÒ´ó¶àÊý²»ÊǺܺ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ