Javaģʽ¿ª·¢Ö®ÔðÈÎÁ´Ä£Ê½ - ±à³ÌÈëÃÅÍø
ÄܼÈÖ´ÐоÆÁÓÖÏòϼҴ«»¨£»µ±Ä³Ò»¸öÈËÖ´ÐÐÁ˾ÆÁîÖ®ºó£¬ÓÎÏ·ÖØпªÊ¼¡£»÷¹ÄµÄÈ˲¢²»ÖªµÀ×îÖÕÊÇÓÉÄÄÒ»¸ö×öÓÎÏ·µÄÈËÖ´ÐоÆÁµ±È»Ö´ÐоÆÁîµÄÈ˱ØÈ»ÊÇ×öÓÎÏ·µÄÈËÃÇÖеÄÒ»¸ö¡£
»÷¹Ä´«»¨µÄÀàͼ½á¹¹ÈçÏ£º ͼ5¡¢»÷¹Ä´«»¨ÏµÍ³µÄÀàͼ¶¨Òå¡£ Javaģʽ¿ª·¢Ö®ÔðÈÎÁ´Ä£Ê½(4)ʱ¼ä:2009-12-15µ¥¶À¿¼ÂÇ»÷¹Ä´«»¨ÏµÍ³£¬ÄÇôÏñ¼Öĸ¡¢¼ÖÉâ¡¢¼ÖÕþ¡¢¼Ö±¦ÓñºÍ¼Ö»·µÈ´«»¨Õß¾ùÓ¦µ±ÊÇ“¾ßÌå´«»¨Õß”µÄ¶ÔÏ󣬶ø²»Ó¦µ±Êǵ¥¶ÀµÄÀࣻµ«ÊÇÔðÈÎÁ´Ä£Ê½ÍùÍùÊǽ¨Á¢ÔÚÏÖÓÐϵͳµÄ»ù´¡Ö®Éϵģ¬Òò´ËÁ´µÄ½á¹¹ºÍ×é³É²»ÓÉÔðÈÎÁ´Ä£Ê½±¾Éí¾ö¶¨¡£ ϵͳµÄ·ÖÎö¡¡¡¡ÔÚ¡¶ºìÂ¥ÃΡ·µÚÆßÊ®Îå»ØÀïÉú¶¯µØÃèÊöÁ˼ָ®ÀïµÄÒ»³¡»÷¹Ä´«»¨ÓÎÏ·£º“¼Öĸ×øÏ£¬×ó´¹Ê×¼ÖÉ⣬¼ÖÕ䣬¼Öçö£¬¼ÖÈØ£¬ÓÒ´¹Ê×¼ÖÕþ£¬±¦Óñ£¬¼Ö»·£¬¼ÖÀ¼£¬ÍÅÍÅΧ×ø¡£...¼Öĸ±ãÃüÕÛÒ»Ö¦¹ð»¨À´£¬Ãüһϱ¸¾ÔÚÆÁºó»÷¹Ä´«»¨¡£Èô»¨µ½ËÊÖÖУ¬Òû¾ÆÒ»±...ÓÚÊÇÏÈ´Ó¼ÖĸÆ𣬴μÖÉ⣬һһ½Ó¹ý¡£¹ÄÉùÁ½×ª£¬Ç¡Ç¡ÔÚ¼ÖÕþÊÖÖÐסÁË£¬Ö»µÃÒûÁ˾ơ£”ÕⳡÓÎÏ·½Ó×ÅÓÖ°Ñ»¨´«µ½Á˱¦ÓñºÍ¼ÖÉâÊÖÀ½Ó×ÅÓÖ´«µ½ÁËÔÚ¼Ö»·ÊÖÀï... Èç¹ûÓÃÒ»¸ö¶ÔÏóϵͳÃèÊö¼Ö¸®£¬ÄÇô¼Öĸ¡¢¼ÖÉâ¡¢¼ÖÕþ¡¢¼Ö±¦ÓñºÍ¼Ö»·µÈµÈ¾ÍÓ¦µ±·Ö±ðÓÉÒ»¸ö¸ö¾ßÌåÀà´ú±í£¬¶øÕⳡ»÷¹Ä´«»¨ÓÎÏ·µÄÀàͼ£¬°´ÕÕÔðÈÎÁ´Ä£Ê½£¬Ó¦µ±ÈçÏÂÍ**ùʾ£º ͼ6¡¢ºìÂ¥ÃÎÖеĻ÷¹Ä´«»¨ÓÎÏ·µÄʾÒâÐÔÀàͼ¡£ »»ÑÔÖ®£¬ÔÚ»÷¹Ä´«»¨ÓÎÏ·ÀïÃ棬ÓÐÏÂÃæµÄ¼¸ÖÖ½ÇÉ«£º ³éÏó´«»¨Õߣ¬»òHandler½ÇÉ«¡¢¶¨Òå³ö²Î¼ÓÓÎÏ·µÄ´«»¨ÈËÒª×ñÊصĹæÔò£¬Ò²¾ÍÊÇÒ»¸ö´¦ÀíÇëÇóµÄ½Ó¿Ú¡¡ºÍ¶ÔϼҵÄÒýÓã» ¾ßÌå´«»¨Õߣ¬»òConcreteHandler½ÇÉ«¡¢Ã¿Ò»¸ö´«»¨Õ߶¼ÖªµÀϼÒÊÇË£¬ÒªÃ´Ö´ÐоÆÁҪô°Ñ»¨¡¡ÏòÏ´«¡£Õâ¸ö½ÇÉ«ÓɼÖĸ¡¢¼ÖÉâ¡¢¼ÖÕä¡¢¼Öçö¡¢¼ÖÈØ¡¢¼ÖÕþ¡¢±¦Óñ¡¢¼Ö»·¡¢¼ÖÀ¼µÈ°çÑÝ¡£ »÷¹ÄÈË£¬»òClient½ÇÉ«¡¢¼´ÐоÆÁîµÄ»÷¹ÄÖ®ÈË¡£¡¶ºìÂ¥ÃΡ·Ã»Óиø³ö´ËÈ˵ľßÌåÐÕÃû£¬Ö»ÊÇ˵ÓÉ“Ò»¡¡Ï±¸¾”°çÑÝ¡£ ͼ7¡¢¼Ö¸®Õâ´Î»÷¹Ä´«»¨µÄʾÒâÐÔ¶ÔÏóͼ¡£ ¿ÉÒÔ¿´³ö£¬»÷¹Ä´«»¨ÓÎÏ·Âú×ãÔðÈÎÁ´Ä£Ê½µÄ¶¨Ò壬ÊÇ´¿µÄÔðÈÎÁ´Ä£Ê½µÄÀý×Ó¡£ JavaϵͳµÄ½â¡¡¡¡ÏÂÃæµÄÀàͼ¸ø³öÁËÕâЩÀàµÄ¾ßÌå½Ó¿ÚÉè¼Æ¡£¶ÁÕß²»ÄÑ¿´³ö£¬DrumBeater£¨»÷¹ÄÕߣ©¡¢Player£¨´«»¨Õߣ©¡¢JiaMu£¨¼Öĸ£©¡¢JiaShe£¨¼ÖÉ⣩¡¢JiaZheng£¨¼ÖÕþ£©¡¢JiaBaoYu£¨±¦Óñ£©¡¢JiaHuan£¨¼Ö»·£©µÈ×é³ÉÕâ¸öϵͳ¡£ ͼ8¡¢»÷¹Ä´«»¨µÄÀàͼÍêÈ«·ûºÏÔðÈÎÁ´Ä£Ê½µÄ¶¨Òå¡£ ÏÂÃæÊÇ¿Í»§¶ËÀàDrumBeaterµÄÔ´´úÂ룺
´úÂëÇåµ¥5¡¢DrumBeaterµÄÔ´´úÂë¡£
´úÂëÇåµ¥6¡¢³éÏó´«»¨ÕßPlayÀàµÄÔ´´úÂë¡£ Javaģʽ¿ª·¢Ö®ÔðÈÎÁ´Ä£Ê½(5)ʱ¼ä:2009-12-15³éÏóÀàPlayer¸ø³öÁËÁ½¸ö·½·¨µÄʵÏÖ£¬ÒÔ¸ñʽsetSuccessor()£¬ÁíÒ»¸öÊÇnext()¡£Ç°ÕßÓÃÀ´ÉèÖÃÒ»¸ö´«»¨Õ߶ÔÏóµÄϼң¬ºóÕßÓÃÀ´½«¾ÆÁî´«¸øϼҡ£PlayerÀà¸ø³öÁËÒ»¸ö³éÏó·½·¨handle()£¬´ú±íÖ´ÐоÆÁî¡£ ÏÂÃæµÄÕâЩ¾ßÌå´«»¨ÕßÀཫ¸ø³öhandle()·½·¨µÄʵÏÖ¡£
|
ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»! |
- java¼S?×hÇÔòwindowsºÉÌñÀÇÓÉ×hxCopy - ˆ@š£Ã؉¯Àû
- 15 ·Ç³£ÓÐȤµÄ CSS3 ʾÀý
- PhotoshopºÏ³É½Ì³Ì:ÖÆ×÷±¼³ÛÆû³µÍøÂç¹ã¸æ
- linux ÈíRAIDͼ½â½Ì³Ì
- ÔÚApache GeronimoÖв¿ÊðWeb·þÎñ - ±à³ÌÈëÃÅÍø
- ÍøÂç·Óɼ¼Êõ¼°ÔËÓÃ
- PSÇáËÉÖÆ×÷÷ÈÁ¦ÎÞÏÞµÄË®µ×³¡¾°
- Photoshopµ÷É«½Ì³Ì£º¾ªÑÞÃÀÅ®
- PSÕÕƬµ÷É«½Ì³Ì:Ä£·ÂEEÉ«µ÷·ç¾°ÕÕƬ
- Linux×ÀÃæ°æºáÆÀ£ºËÄ¡¢SuSE Linux Enterprise Desktop 10 SP1