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

java´úÀíģʽ¼°¶¯Ì¬´úÀíÀà

  java´úÀíģʽ¼°¶¯Ì¬´úÀíÀà ÊÕ²Ø
 
¶Ô´úÀíģʽÓëJava¶¯Ì¬´úÀíÀàµÄÀí½â
1.      ´úÀíģʽ
´úÀíģʽµÄ×÷ÓÃÊÇ£ºÎªÆäËû¶ÔÏóÌṩһÖÖ´úÀíÒÔ¿ØÖƶÔÕâ¸ö¶ÔÏóµÄ·ÃÎÊ¡£ÔÚijЩÇé¿öÏ£¬Ò»¸ö¿Í»§²»Ïë»òÕß²»ÄÜÖ±½ÓÒýÓÃÁíÒ»¸ö¶ÔÏ󣬶ø´úÀí¶ÔÏó¿ÉÒÔÔÚ¿Í»§¶ËºÍÄ¿±ê¶ÔÏóÖ®¼äÆðµ½ÖнéµÄ×÷Óá£
´úÀíģʽһ°ãÉæ¼°µ½µÄ½ÇÉ«ÓУº
³éÏó½ÇÉ«£ºÉùÃ÷Õæʵ¶ÔÏóºÍ´úÀí¶ÔÏóµÄ¹²Í¬½Ó¿Ú£»
´úÀí½ÇÉ«£º´úÀí¶ÔÏó½ÇÉ«ÄÚ²¿º¬ÓжÔÕæʵ¶ÔÏóµÄÒýÓ㬴Ӷø¿ÉÒÔ²Ù×÷Õæʵ¶ÔÏó£¬Í¬Ê±´úÀí¶ÔÏóÌṩÓëÕæʵ¶ÔÏóÏàͬµÄ½Ó¿ÚÒÔ±ãÔÚÈκÎʱ¿Ì¶¼ÄÜ´úÌæÕæʵ¶ÔÏó¡£Í¬Ê±£¬´úÀí¶ÔÏó¿ÉÒÔÔÚÖ´ÐÐÕæʵ¶ÔÏó²Ù×÷ʱ£¬¸½¼ÓÆäËûµÄ²Ù×÷£¬Ï൱ÓÚ¶ÔÕæʵ¶ÔÏó½øÐзâ×°¡£
Õæʵ½ÇÉ«£º´úÀí½ÇÉ«Ëù´ú±íµÄÕæʵ¶ÔÏó£¬ÊÇÎÒÃÇ×îÖÕÒªÒýÓõĶÔÏó¡£(²Î¼ûÎÄÏ×1)
ÒÔÏÂÒÔ¡¶JavaÓëģʽ¡·ÖеÄʾÀýΪÀý£º
³éÏó½ÇÉ«£º
abstract public class Subject
{
    abstract public void request();
}
Õæʵ½ÇÉ«£ºÊµÏÖÁËSubjectµÄrequest()·½·¨¡£
public class RealSubject extends Subject
{
       public RealSubject()
       {
       }
      
       public void request()
       {
              System.out.println("from real subject.");
       }
}
´úÀí½ÇÉ«£º
public class ProxySubject extends Subject
{
    private RealSubject realSubject;  //ÒÔÕæʵ½ÇÉ«×÷Ϊ´úÀí½ÇÉ«µÄÊôÐÔ
      
       public ProxySubject()
       {
       }
       public void request()  //¸Ã·½·¨·â×°ÁËÕæʵ¶ÔÏóµÄrequest·½·¨
       {
        preRequest(); 
              if( realSubject == null )
   &nb


Ïà¹ØÎĵµ£º

javaÐÔÄܵÄÓÅ»¯(Ò»)

 
ÎÒ¶ÔÎÊÌâµÄÀí½â£ºÃæÊÔÖеÄÒ»¸öÎÊÌ⣬¾ÓÈ»ÏëÁË°ëÌìûÓÐʲôͷÐ÷£¬ÎÒÏ뻹ÊÇûÓÐ˼¿¼£¬Ã»ÓлýÀÛ¹ý¡£ÆäʵÍêÈ«¿ÉÒÔ˵ÉÏһЩСϸ½Ú£¬±ÈÈçÓÃStringBuffer´úÌæString£¬ÓÃHashMap´úÌæHashtable, ³Ë·¨²Ù×÷ÓÃλÒÆ£¬¾¡Á¿¸´ÓÃÒÑÓеľ­¹ý¼ìÑéµÄ¸ßЧ´úÂëµÈµÈ¡£
    ÏÂÃæµÄÎÄÕÂתÔØ×Ô±ðµÄÍøÕ¾£¬Ð´µÃºÜרҵ£¬Öܵ½£¬ ......

JAVAÖеķ´Éä»úÖÆÏê½â

JAVA·´Éä»úÖÆ
    JAVA·´Éä»úÖÆÊÇÔÚÔËÐÐ״̬ÖУ¬¶ÔÓÚÈÎÒâÒ»¸öÀ࣬¶¼Äܹ»ÖªµÀÕâ¸öÀàµÄËùÓÐÊôÐԺͷ½·¨£»¶ÔÓÚÈÎÒâÒ»¸ö¶ÔÏ󣬶¼Äܹ»µ÷ÓÃËüµÄÈÎÒâÒ»¸ö·½·¨£»ÕâÖÖ¶¯Ì¬»ñÈ¡µÄÐÅÏ¢ÒÔ¼°¶¯Ì¬µ÷ÓöÔÏóµÄ·½·¨µÄ¹¦ÄܳÆΪjavaÓïÑԵķ´Éä»úÖÆ¡£
Java·´Éä»úÖÆÖ÷ÒªÌṩÁËÒÔϹ¦ÄÜ£º ÔÚÔËÐÐʱÅжÏÈÎÒâÒ»¸ö¶ÔÏóËùÊô ......

Javaµ÷ÓÃϵͳÃüÁîѧϰ£¨Èý£©

ѧϰÁËÁ½ÆªµÄRuntimeÀ࣬ÏÖÔÚ¶ÔËüÓÐÁ˸üÉîÒ»²ãµÄÁ˽⣬ÄÇôÎÒÃÇÀ´¿´¿´ÏÂÃæµÄ´úÂ룺
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader ;
import java.io.BufferedReader;
public class Exec_Output{
public static void main(String []args)throws IOException,Int ......

javaºÍ¡£netÖ®¼äµÄ»¥²Ù×÷

.netÍøÕ¾theserverside.comÉÏ£¬ÓÐһƪ½².netºÍjava»¥²Ù×÷µÄÎÄÕ£¬ÊÕ¼¯ÁËnetºÍjava»¥²Ù×÷ÐÔµÄÎÄÕ¾«Ñ¡
[url]http://www.theserverside.net/tt/articles/showarticle.tss?id=InteropGuide[/url]
In the heterogeneous world of enterprise computing, interoperability is no longer a luxury but a necessity. The multip ......

MD5 java bean


/************************************************
MD5 Ëã·¨µÄJava Bean
*************************************************/
package beartool;
import java.lang.reflect.*;
public class MD5 {
    /* ÏÂÃæÕâЩS11-S44ʵ¼ÊÉÏÊÇÒ»¸ö4*4µÄ¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ