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

JAVA ¶¯Ì¬¹¹½¨Ê÷(1)

1.       ¶Ô×Ô¼ºµÄ×ܽáºÍÀí½âµÄÉý»ªÊÇÎÒϲ»¶×öµÄÒ»¼þÊ£¬ÔÚʵ¼ÊÏîÄ¿¹ý³ÌÖУ¬ºÜ¶àµØ·½¶¼Óõ½¶¯Ì¬Éú³ÉÊ÷Ðβ˵¥µÄµØ·½£¬ÏÖÔھ͸ø´ó¼Ò½²½²ÈçºÎ¶¯Ì¬Éú³ÉÒ»¿ÃÊ÷¡£
2.       Ê×ÏÈÎÒÃDZØÐëÒª½¨Á¢Ê÷µÄ½ÚµãÄ£ÐÍ£¬ÆäʵÊ÷µÄ½ÚµãÄ£ÐÍÖÐÍùÍù¾ÍÊÇÎÒÃÇÐèÒª´æ·ÅµÄÊý¾Ý¶ÔÏ󣬺ܶàʱºò£¬ÎÒÃÇÈ¡µÃµÄµ½µÄÊý¾Ý¶ÔÏó¶¼ÊÇÒÔListµÄ·½Ê½À´¸øÎÒÃǵġ£¶¯Ì¬Éú³ÉÊ÷Î޷ǾÍÊǽ«Ã»ÓйæÂɵÄÒ»¸öÁÐ±í£¬Í¨¹ýListµÄ·½Ê½£¬Éú³ÉÓÐ×éÖ¯¡¢ÓÐ˳ÐòµÄListÊý¾Ý¶ÔÏóÁÐ±í¡£
Ê÷½ÚµãÄ£ÐÍ£º
 
import java.util.ArrayList;
 
/**
 * ͨÓÃÊ÷½ÚµãÄ£ÐÍ£¬¸Ã½ÚµãÄ£ÐÍÊÇÎÒÃÇÊý¾Ý¶ÔÏóµÄÔØÌå
 * ͨ¹ý¶ÔÊ÷µÄ²Ù×÷£¬´ïµ½¶ÔÊý¾Ý¶ÔÏóµÄ²Ù×÷
 * @author ÏļҼª<jijin0223@126.com>
 *
 */
public class CommonTreeNode {
 
    private ArrayList children;
    private String name;
    private CommonTreeNode parent;
    private SystemMenu systemMenu;//ÔÚ´Ë´¦¾ÍÊÇÎÒÃÇËù¶ÔÓ¦µÄÊý¾Ý¶ÔÏó
    public CommonTreeNode(String name){
       this.name=name;
       children = new ArrayList();
    }
    public void addChild(CommonTreeNode obj){
       children.add(obj);
       obj.setParent(this);
      
    }
    public void removeChild(CommonTreeNode obj){
       children.remove(obj);
       obj.setParent(null);
    }
    public void setParent(CommonTreeNode parent){
       this.parent=parent;
    }
    public CommonTreeNode getParent(){
       return this.parent;
    }
    public ArrayList getChildren(){
       return children;
   


Ïà¹ØÎĵµ£º

JAVA socket ¹ØÓÚDNS »º´æ

ÔÚͨ¹ýDNS²éÕÒÓòÃûµÄ¹ý³ÌÖУ¬¿ÉÄܻᾭ¹ý¶ą̀ÖмäDNS·þÎñÆ÷²ÅÄÜÕÒµ½Ö¸¶¨µÄÓòÃû£¬Òò´Ë£¬ÔÚDNS·þÎñÆ÷ÉϲéÕÒÓòÃûÊǷdz£°º¹óµÄ²Ù×÷¡£ÔÚJavaÖÐΪÁË»º½âÕâ¸öÎÊÌ⣬ÌṩÁËDNS»º´æ¡£µ±InetAddressÀàµÚÒ»´ÎʹÓÃij¸öÓòÃû£¨Èçwww.csdn.net£©´´½¨InetAddress¶ÔÏóºó£¬JVM¾Í»á½«Õâ¸öÓòÃûºÍËü´ÓDNSÉÏ»ñµÃµÄÐÅÏ¢£¨ÈçIPµØÖ·£©¶¼±£´æÔÚDNS»º´æÖ ......

Java¹Ø¼ü×Öfinal¡¢staticʹÓÃ×ܽá

Java¹Ø¼ü×Öfinal¡¢staticʹÓÃ×ܽá
 
Java¹Ø¼ü×Öfinal¡¢staticʹÓÃ×ܽá
 
Ò»¡¢final
        ¸ù¾Ý³ÌÐòÉÏÏÂÎÄ»·¾³£¬Java¹Ø¼ü×ÖfinalÓГÕâÊÇÎÞ·¨¸Ä±äµÄ”»òÕß“ÖÕ̬µÄ”º¬Ò壬Ëü¿ÉÒÔÐÞÊηdzéÏóÀà¡¢·Ç³éÏóÀà³ÉÔ±·½·¨ºÍ±äÁ¿¡£Äã¿ÉÄܳöÓÚÁ½ÖÖÀí½â¶øÐèÒª ......

java ÈÕÆÚ²î ʵÏÖ(×·ÖÖÓÇ°)¹¦ÄÜ

½ñÌì¾­ÀíÈÃдһ¸ö£¬¸ù¾ÝÐÅÏ¢ÉÏ´«Ê±¼ä£¬ÏÔʾ£¬£¿·ÖÖÓÇ°£¬£¿Ð¡Ê±Ç°£¬£¿ÌìÇ°£¬ÀàËÆqq¿Õ¼ä·¢±íµÄÐÄÇéÈÕÆÚ£»
ÓÃÁËÒ»¸ö×ÔÎҸоõ±¿µÄ·½·¨£¬²»¹ý»¹ÊÇʵÏÖÁË£¬ºÇºÇºÇ
    public static String getCompareTime(String filetime){
     //·µ»ØµÄ×Ö·û´®
    String retStr =""; ......

java ÃüÁîÐдò°ü³É jar Îļþ

Ê×ÏÈ´ò¿ªÃüÁîÐÐÈ·¶¨ÃüÁîÐеĺ¯ÊýÊÇ·ñ¿ÉÒÔÓã¬ÔÚÃüÁîÐÐÀïÃæÊäÈëjar Èç¹û¿ÉÒÔÓþͻá³öÏÖÃüÁîjarµÄ¸÷¸ö²ÎÊýÑ¡Ôñ¹æÔò£¬ºÍÒ»¸öСÎÊÌ⣬ÎÒÓöµ½µÄÎÊÌâÊÇÓÐÒ»¸öµ¥¶ÀµÄclassÎļþ ûÓÐÔ´Îļþ£¬³ÌÐòÒªÔÚnetbeanÀïÃæµ÷ÓÃÕâ¸öclassÎļþ£¬¶øÎÒ²»ÖªµÀnetbeanÈçºÎÒýÓÃÕâ¸öclassÎļþÁË ¾ÍÖ»ºÃ°Ñclass´ò°ü³ÉjarÁË£¬
Ê×ÏÈÎÒÔÚCÅÌÀïÃ潨Á¢Á˸öÎ ......

ÂÛjava¼Ü¹¹Éè¼Æ

Èí¼þ¼Ü¹¹
×÷Ϊһ¸ö¸ÅÄÌåÏÖÔÚ¼¼Êõ
ºÍÒµÎñ
Á½
¸ö·½Ãæ¡£
´Ó¼¼Êõ½Ç¶ÈÀ´Ëµ
£ºÈí¼þ¼Ü¹¹Ëæ׿¼ÊõµÄ¸ïв»¶ÏµØ¸üÐÂÆäÄÚÈÝ£¬Èí¼þ¼Ü¹¹½¨Á¢ÓÚµ±Ç°¼¼Êõ
ºÍһЩ»ù
±¾Ô­Ôò
µÄ»ù´¡Ö®ÉÏ¡£
ÏÈ˵һЩ»ù±¾Ô­Ôò
£º
·Ö²ãÔ­Ôò
£º·Ö²ãÊÇΪÁ˽µµÍÈí¼þÉî¶È¸´ÔÓÐÔ¶øʹÓõĹؼü˼Ï룬¾ÍÏñÉç»áÓÐÁ˽׼¶Ò»Ñù£¬Èí¼þÓÐÁ˲ã´Î½á¹¹¡£
Ä£¿é»¯ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ