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

JavaÃÜÂë¼ÓÃÜ


Java´úÂë
package com.sunnylocus.util;   
  
import java.security.MessageDigest;   
  
/**   
 * ¶ÔÃÜÂë½øÐмÓÃܺÍÑéÖ¤µÄÀà  
 */  
public class CipherUtil{   
       
    //Ê®Áù½øÖÆÏÂÊý×Öµ½×Ö·ûµÄÓ³ÉäÊý×é   
    private final static String[] hexDigits = {"0", "1", "2", "3", "4",   
        "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"};   
       
    /** * °ÑinputString¼ÓÃÜ     */  
    public static String generatePassword(String inputString){   
        return encodeByMD5(inputString);   
    }   
       
      /**  
       * ÑéÖ¤ÊäÈëµÄÃÜÂëÊÇ·ñÕýÈ·  
     * @param password    ¼ÓÃܺóµÄÃÜÂë  
     * @param inputString    ÊäÈëµÄ×Ö·û´®  
     * @return    ÑéÖ¤½á¹û£¬TRUE:ÕýÈ· FALSE:´íÎó  
     */  
    public static boolean validatePassword(String password, String inputString){   
        if(password.equals(encodeByMD5(inputString))){   
            return true;   


Ïà¹ØÎĵµ£º

java ÖÐÎÄתUTF 8

    /**
     * inParam:ÐèҪת»»µÄgb2312ÖÐÎÄ×Ö·û ·µ»Ø:¸ÃÖÐÎÄ×Ö·û¶ÔÓ¦µÄUTF-8±àÂëµÄ×Ö·û
     */
    public static String toUTF(String inPara) {
        char temChr;
      &n ......

³ÉΪJava¸ßÊÖÐèҪעÒâµÄ25¸öѧϰĿ±ê

1.ÄãÐèÒª¾«Í¨ÃæÏò¶ÔÏó·ÖÎöÓëÉè¼Æ(OOA/OOD)¡¢É漰ģʽ(GOF£¬J2EEDP)ÒÔ¼°×ÛºÏģʽ¡£ÄãÓ¦¸ÃÁ˽âUML£¬ÓÈÆäÊÇclass£¬object£¬interactionÒÔ¼°statediagrams¡£
2.ÄãÐèҪѧϰJavaÓïÑԵĻù´¡ÖªÊ¶ÒÔ¼°ËüµÄºËÐÄÀà¿â(collections£¬serialization£¬streams£¬networking£¬?multithreading£¬reflection£¬event£¬handling£¬NIO£¬localiza ......

Java֪ʶʰÒÅ£ºÈý´ó¿ò¼ÜµÄ¼¼ÊõÆðÔ´(zz)


Struts¡¢HibernateºÍSpringÊÇÎÒÃÇJava¿ª·¢Öеij£Óùؼü£¬ËûÃÇ·Ö±ðÕë¶Ô²»Í¬µÄÓ¦Óó¡¾°¸ø³ö×îºÏÊʵĽâ¾ö·½°¸¡£µ«ÄãÊÇ·ñÖªµÀ£¬ÕâЩ֪Ãû¿ò¼Ü×î³õÊÇÔõÑù²úÉúµÄ£¿
ÎÒÃÇÖªµÀ£¬´«Í³µÄJava WebÓ¦ÓóÌÐòÊDzÉÓÃJSP+Servlet+JavabeanÀ´ÊµÏֵģ¬ÕâÖÖģʽʵÏÖÁË×î»ù±¾µÄMVC·Ö²ã£¬Ê¹µÄ³ÌÐò½á¹¹·ÖΪ¼¸²ã£¬ÓиºÔðǰ̨չʾµÄJSP¡¢¸ºÔðÁ÷³Ì ......

JAVA³£ÓÃÀà½âÎö String

      ÒªÀí½â javaÖÐStringµÄÔË×÷·½Ê½£¬±ØÐëÃ÷È·Ò»µã£ºStringÊÇÒ»¸ö·Ç¿É±äÀࣨimmutable£©¡£Ê²Ã´ÊǷǿɱäÀàÄØ£¿¼òµ¥ËµÀ´£¬·Ç¿É±äÀàµÄʵÀýÊDz»Äܱ»Ð޸ĵģ¬Ã¿¸öʵÀýÖаüº¬µÄÐÅÏ¢¶¼±ØÐëÔÚ¸ÃʵÀý´´½¨µÄʱºò¾ÍÌṩ³öÀ´£¬²¢ÇÒÔÚ¶ÔÏóµÄÕû¸öÉú´æÖÜÆÚÄڹ̶¨²»±ä¡£javaΪʲôҪ°ÑStringÉè¼ÆÎª·Ç¿É±äÀàÄØ£¿Ä ......

javaÖеĶ¨Ê±Æ÷Timer

package com.tonglian.test;
import java.util.TimerTask;
//TimerTaskÊǸöÐéÀ࣬ÆäÖÐÓÐÒ»¸örun()
public class Work extends TimerTask{
 @Override
 public void run() {
  // TODO Auto-generated method stub
  System.out.println("tttt/n");
 }
}
//¹¦ÄÜ£ºÃ¿¸ô1Ãë¾Í»áµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ