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

JavaÉè¼Æģʽ֮:IteratorÁ´±íģʽ

ÏÈÀ´Á˽âÒ»ÏÂÁ´±íģʽµÄÔ­Àí£º
Ê×ÏÈдһ¸öJavaBean£¬ÄÚÈÝÊÇÒªÌí¼ÓµÄÔªËغ͸ÃÔªËصĽڵ㡣
public class NodeBean implements Serializable
{
   
    private Object data; //ÔªËر¾Éí
    private NodeBean next; //ÏÂÒ»¸ö½Úµã
   
    public Object getData()
    {
        return data;
    }
   
    public void setData(Object data)
    {
        this.data = data;
    }
   
    public NodeBean getNext()
    {
        return next;
    }
   
    public void setNext(NodeBean next)
    {
        this.next = next;
    }
   
    public NodeBean(Object data, NodeBean next)
    {
        this.data = data;
        this.next = next;
    }
   
    public NodeBean()
    {
       
    }
   
    public String toString()
    {
        return data + " " + next;
    }
   
}
½ÓÏÂÀ´£¬±àдһ¸öIteratorÀ࣬±ÈÈçÎÒµÄÀàÃûÊÇIteratorLinkedModel£¬Ëü¾ßÓÐһЩ¹¦ÄÜÐԵķ½·¨£¬ÕâÀïÎÒÃǽéÉÜÌí¼ÓµÄ·½·¨¡£Í¬Ê±ËüÀïÃæ×°ÈëÁËÐí¶à¸ö½Úµã£¬°üÀ¨Æðʼ½ÚµãºÍ½áÊø½Úµã¡£
public class IteratorLinkedModel
{
   
    //Æðʼ½Úµã
    NodeBean head = null;
   
    //¼ÆÊýÆ÷£¬¼Ç¼µ±Ç°Á´±íÀïÓжàÉÙ¸öÔªËØ
    int size = 0;
   
    //µ±ÎÒÃÇÌí¼ÓÐÂÔªËصÄʱºò£¬


Ïà¹ØÎĵµ£º

·ÖÏíjavaдµÄµç¿ÏÂÔØÍê³É¹Ø»úС³ÌÐò

×Ô¼ºÑо¿ÏÂverycdÏÂÔØÌ×·,·¢ÏÖÒ»¸ödownloads.txtÎļþͬ²½ÕýÔÚÏÂÔصÄ×ÊÔ´ÐÅÏ¢,ÏÂÔØÍê³Éºó×Ô¶¯É¾³ýÀïÃæµÄ¼Ç¼,Õâ¾Í¼òµ¥¶àÁË.
˼·:¶Ádownloads.txtÎļþ,ÀûÓùؼü×Ö°ÑÀïÃæµÄ¼Ç¼·Ö¸îºó¼ÓÈëlist,Ñ¡Ôñ¼àÊÓµÄÎļþÃû,ÀûÓÃwhileÑ­»·µÄµ¹¼Æʱ·½·¨ÒÔÎļþÃûΪ¹Ø¼ü×Ö´ÓlistÀﶨʱËÑË÷,Èç¹ûÏÂÔØÍê³É,µ÷ÓÃruntimeÀàÔËÐÐdosÃüÁîshutdown, ......

javaÔÓÏë

²ÉÓÃÓûÑïÏÈÒÖµÄÊÖ·¨Ì¸Ì¸java:
      javaûÓÐÖ¸ÕëÖ»ÓÐÒýÓÃÊÇ×î´óµÄ°Ü±Ê.ÕýÒòΪûÓÐÖ¸Õë,ºÜ¶à²Ù×÷ÒªÓØ»ØÍñת;À¬»øÊÕ¼¯»úÖÆÒ²¾õµÃÊǼ¦Àß,д¸öÎö¹¹º¯ÊýÕæµÄÄÇô¸´ÔÓÂð, ÓбØÒªÎþÉüÁé»îÐÔÂð;º¯Êýµ÷ÓõĴú¼ÛÖ®¸ßÈÃÈË×¥¿ñ
µ«ÎÒ»¹ÊÇÑ¡ÔñÁËËý:
      javaµÄ´¿ÃæÏò¶ÔÏóÌØ ......

JAVA·ÖΪJ2EE,J2SE.J2ME

JAVA·ÖΪJ2EE,J2SE.J2ME,ÏÂÃæ·Ö±ð½éÉÜ:
Ò».J2EE£ºJava 2 Platform Enterprise Edition ÆóÒµ°æ£¬ÓÃÓÚÆóÒµÓ¦Óã¬Ö§³Ö·Ö²¼Ê½²¿Êð¡£ 
J2EEƽ̨ÓÉÒ»ÕûÌ×·þÎñ£¨Services£©¡¢Ó¦ÓóÌÐò½Ó¿Ú£¨APIs£©ºÍЭÒé¹¹³É£¬
Ëü¶Ô¿ª·¢»ùÓÚWebµÄ¶à²ãÓ¦ÓÃÌṩÁ˹¦ÄÜÉϵÄÖ§³Ö¡£Ëü°üº¬13ÖÖºËÐļ¼Êõ¹æ·¶£º
£¨1£©Java Database Connectivity ......

²ËÄñ¶ÔjavaµÄһЩÀ§»ó

ѧjavaÒѾ­ÓÐÒ»¶Îʱ¼äÁË¡£Ñ§µÄ¶«Î÷²»¶à£¬µ«ÎÒûÏëµ½½ö½öÃæÏò¹ý³ÌµÄһЩ֪ʶ£¨Loops£©¾Í¿ÉÒÔ×ö³öÏñÎå×ÓÆåÕâÑùµÄÓÎÏ·£¬ÎÒ²»µÃ²»¸Ð̾javaÓïÑÔµÄ÷ÈÁ¦¡£ÌرðÊÇÁ˽⵽javaµÄÓ¦ÓÃÖ®¹â·º£¬Éæ¼°ÊÖ»ú£¬Ç¶Èëʽ¿ª·¢£¬pc£¬ÆóÒµ¼°·þÎñÆ÷µÈÖ®ºó£¬ÎÒ¸ü¼á¶¨ÁËѧϰjavaµÄ¾öÐÄ¡£µ«ÊÇÎÒÒ²µ£ÐÄ×Ô¼ºÑ§²»°¡ºÃ¡£ºÜ¶à¶«Î÷¶¼ÊÇÔÚÀÏʦµÄÀÏÁìµ¼ÏÂÍê³ÉµÄ£ ......

C++ºÍJavaÖÐÀàÒýÓõÄÇø±ð


¡¡ÔÚC++ºÍJavaÖж¼´æÔÚÀàÒýÓã¬C++ÖÐÊÇÒªÃ÷È·Ö¸³öµÄ£¬ÏÔÐÔµÄ;¶øJavaÖÐÊÇÒþÐεġ£
¡¡¡¡ÔÚC++ÖУ¬"T &b=a;" ˵Ã÷bÊÇaµÄÒýÓã¬Á½ÕßÊÇͬÃû£¬Ö¸µÄͬһ¸ö¶«Î÷¡£¶ø·ÇÖ¸ÕëµÄÀàÉùÃ÷£¬¾Íͬʱ´´½¨ÁËÒ»¸öÀ࣬Èç"T a;"ʵ¼ÊÉÏaÒѾ­ÊµÀý»¯ÁË¡£¶øÉùÃ÷ÀàÒýÓÃʱ²»ÐèÒª´´½¨Ð¶ÔÏ󣬶øÊÇÖ±½ÓÖ¸ÏòÔ­À´µÄ¶ÔÏó¡£
¡¡¡¡ÀàÒýÓÃÔÚº¯ÊýµÄÐβκͷ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ