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

JAVAÄÚ²¿ÀàµÄ×÷ÓÃ

Ò»¡¢ ¶¨Òå
·ÅÔÚÒ»¸öÀàµÄÄÚ²¿µÄÀàÎÒÃǾͽÐÄÚ²¿Àà¡£
¶þ¡¢ ×÷ÓÃ
1.ÄÚ²¿Àà¿ÉÒԺܺõÄʵÏÖÒþ²Ø,Ò²¾ÍÊÇ·â×°ÐÔ¡£Ò»°ãµÄ·ÇÄÚ²¿À࣬ÊDz»ÔÊÐíÓÐ private ÓëprotectedȨÏ޵ģ¬µ«ÄÚ²¿Àà¿ÉÒÔ
2.ÄÚ²¿ÀàÓµÓÐÍâΧÀàµÄËùÓÐÔªËصķÃÎÊȨÏÞ
3.¿ÉÊÇʵÏÖ¶àÖؼ̳Ð
4.¿ÉÒÔ±ÜÃâÐ޸ĽӿڶøʵÏÖͬһ¸öÀàÖÐÁ½ÖÖͬÃû·½·¨µÄµ÷ÓÃ
Èý¡¢   Àý×Ó
1.ʵÏÖÒþ²Ø
ƽʱÎÒÃǶÔÀàµÄ·ÃÎÊȨÏÞ£¬¶¼ÊÇͨ¹ýÀàÇ°ÃæµÄ·ÃÎÊÐÞÊηûÀ´ÏÞÖƵģ¬Ò»°ãµÄ·ÇÄÚ²¿À࣬ÊDz»ÔÊÐíÓÐ private
ÓëprotectedȨÏ޵ģ¬µ«ÄÚ²¿Àà¿ÉÒÔ£¬ËùÒÔÎÒÃÇÄÜͨ¹ýÄÚ²¿ÀàÀ´Òþ²ØÎÒÃǵÄÐÅÏ¢¡£¿ÉÒÔ¿´ÏÂÃæµÄÀý×Ó
Java
´úÂë
package
 beyondx;  
  
public
 
class
 Example {  
     
    private
 
class
 InsideClass 
implements
 InterfaceTest  
    {  
         public
 
void
 test()  
         {  
             System.out.println("ÕâÊÇÒ»¸ö²âÊÔ"
);  
         }  
    }  
    public
 InterfaceTest getIn()  
    {  
        return
 
new
 InsideClass();  
    }  
}  
package beyondx;
public class Example {

private class InsideClass implements InterfaceTest
{
public void test()
{
System.out.println("ÕâÊÇÒ»¸ö²âÊÔ");
}
}
public InterfaceTest getIn()
{
return new InsideClass();
}
}
ÉÏÃæµÄInsideClass¾ÍÊÇÒ»¸öÄÚ²¿À࣬·ÃÎÊÐÞÊηûÊÇprivate
¿Í»§¶Ë³ÌÐò
Java
´úÂë
package
 insidecategory;  
  
public
 
class
 TestExample&


Ïà¹ØÎĵµ£º

ͨ¹ýѧϰÕÅÀÏʦµÄjavaÊÓƵÎÒѧµ½ÁËʲô

¡¾1¡¿Í¨¹ý¿´ÕâÌ×ÊÓƵÎÒѧµ½ÁËÃæÊԵļ¼ÇÉ£¬ÒÔ¼°Ò»Ð©ÐèÒª¼ÇסµÄÃæÊÔÌâ
¡¾2¡¿Í¨¹ý¿´ÊÓƵÎÒѧµ½ÁËÔõÑùȥѧϰ£¬ÔõÑùÔÚ¶Ìʱ¼äÄڰѸÃÓõļ¼Êõѧ»á£¬Í¨¹ý²é¿´×ÊÁÏÆ©ÈçAPIµÈ£¬¶øÇÒ»¹Ñ§»áÁËÏÖѧÏÖÂô£¬»îѧ»îÓÃ
¡¾3¡¿Ê²Ã´ÊÇIDEÓ¦ÓóÌÐò¿ª·¢¹¤¾ß
¡¾4¡¿MyEclipseµÄһЩʹÓÃС¼¼ÇÉ£¬Í¨¹ýÕâЩС¼¼ÇÉ¿ÉÒÔÔö¼Ó¿ª·¢Ð§ÂÊ
£¨¿ì½Ý¼ü£©£¨javaÄ ......

JavaÓÅ»¯²ßÂÔ£¨Ò»£©£ºµ×²ãÓÅ»¯

By ³å³öÓîÖæ from °Á¶û¿Æ¼¼(www.hour41.com)
ʱ¼ä£º2006-11-17
×¢£º×ªÔØÇë×¢Ã÷×÷Õߺ͵¥Î»¡£
       JavaÓïÑÔ±ê×¼´Ó1996Äê·¢²¼µÚÒ»°æ£¬µ½2000Äê·¢²¼µÚ¶þ°æ£¬ÔÙµ½2004Äê·¢²¼µÚÈý°æ£¬javaÓïÑÔÒѾ­¾­¹ýÁË3´Î´óµÄÀ©³äºÍ¸Ä½ø¡£¹¦ÄÜÊÇÔ½À´Ô½¶à£¬²Ù×÷ÊÇÔ½À´Ô½¸´ÔÓ¡£ÏÔÈ»£¬ÐÔÄÜÎÊÌâÒ²¾ÍÔ½À´Ô½Í» ......

Java´ò°üÏê½â

jarÎļþÌý˵¹ýÂð£¬Ã»ÓУ¿»òÕßÄ°Éú£¡ºÃ£¬Ã»¹Øϵ£¬Õâ¾ÍÊÇÎÒÃǵĵÚÒ»Õ¾£º´ò°ü·¢²¼¡£
Ϊʲô»áÓÐÕâ¸öÍæÒâÄØ£¬Ê×ÏÈ£¬ÕâÊÇjarµÄÈ«³Æ£ºJavaTM Archive (JAR) file£¬Êǵģ¬¾ÍÊÇjava´æµµÎļþ¡£ÕâÓеãÀàËÆzipÎļþ£¬ÏëÒ»ÏëËüÊǸÉʲôµÄÓõÄÄØ£¬Ñ¹Ëõ£¡£¿Ã»´í¾ÍÊÇҪѹËõ£¬½«ÎÒÃÇÔ­ÏÈÁãÉ¢µÄ¶«Î÷·Åµ½Ò»Ï£¬ÖØР×éÖ¯£¬ËùÓÐÕâЩĿµÄÖ»ÓÐÒ»¸ ......

JAVA ÈÕÆÚ¹¤¾ßÀà

package com.gamvan.tools;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class FormatDateTime {

/**
* ÈÕÆÚÀà²Ù×÷¹¤¾ß
*/
public static String formatDateTime(String ymd){
//¸ñʽ»¯µ±Ç°Ê±¼ä
java.text ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ