²ÉÓÃJavaµÄÀà½øÐÐmd5¼ÓÃÜ
´úÂëÈçÏ£º
package com.test.j2se;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class MD5 {
/**Êý¾Ý¼ÓÃÜ
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
MessageDigest code = MessageDigest.getInstance("MD5");
String str = "ADFSE";
System.out.println("before md5:"+str);
code.update(str.getBytes());
byte[] bs = code.digest();
StringBuffer sb = new StringBuffer();
for(int i =0;i<bs.length;i++) {
// System.out.println("bs["+i+"]="+bs[i]);
int v = bs[i]& 0xff;
if(v <16) {
sb.append(0);
}
sb.append(Integer.toHexString(v).toUpperCase());
}
System.out.println("length ="+sb.length());
System.out.println("after md5 :"+sb.toString());
System.out.println("5tohexStrin="+Integer.toHexString(17));
} catch (NoSuchAlgorithmException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
Ò»°ãÑéÖ¤Â룺ÎÒÃÇ¿ÉÒÔ¶ÔÆä½øÐмÓÃÜ£¬È»ºó½«ÊäÈëµÄÑéÖ¤Âë¼ÓÃܺó¸úÆä¶Ô±È¡£¡£
Ïà¹ØÎĵµ£º
×î½ü¹«Ë¾Åöµ½ÐèÒªÓÃͼ±íµÄÐÎʽÏÔʾһЩÊý¾Ý£¬ÎҾͿªÊ¼µ½ÍøÉϲéѯ£¬²éµ½ÁËjfreechartºÍamcharts,ÕâÁ½ÕßÎÒ¶¼ÊµÏÖ¹ýÁË£¬jfreechart×îºóÉú³ÉͼƬ£¬µ«ÊÇͼƬЧ¹û²»ÊÇÎÒÏëÒªµÄ£¬È»ºóÓÖÑо¿amcharts ËüµÄЧ¹ûȷʵºÜºÃ£¬¶øÇÒ¹Ù·½ÍøÕ¾ÉÏ»¹ÓкÃЩÀý×ӿɹ©ÏÂÔØ£¬ÍøÖ·ÊÇ:www.amcharts.com
£¨ÏëÒªÍê³ÉÒ»¸öamchartsͼÐÎÐèÒªswfobjects. ......
Java¿ª·¢Æ½Ì¨µÄÖÖÀàºÜ¶à£¬ÔÚÕâƪÎÄÕÂÖÐÎÒÖ÷ÒªÒÔJ2SEΪÀý×Ó¡£J2SE¼¸ºõÊÇ¿ª·¢ËùÓÐJavaÓ¦ÓóÌÐòµÄ±Ø±¸¡£ËüÖ÷ÒªÊÇÓÉÒ»¸öcompiler(±àÒëÆ÷)£¬Ò»¸öÔËÐл·¾³(runtime environment),ºÍÒ»¸öºËÐĵÄAPIËù¹¹³É¡£ÎÒÃÇÒªÔÙ´ÎҪǿµ÷µÄÊÇ£¬ÄúËù±àдӦÓóÌÐò²¢²»ÊÇÖ±½ÓÔÚÄúµÄ±¾µØ²Ù×÷ϵͳÉÏÖ´ÐÐµÄ ......
ÏàÐÅ´ó¼ÒÒѾ¶ÔEclipseµÄʹÓÃÓÐÒ»¶¨µÄ¾Ñé,ÔÚ±àдjavaÔ´´úÂëÊǼþÌý×ÔºÀµÄÊÂ,´óÒª±àÒëÒ»´óÅújavaÔ´´úÂëȴʵ¼ù±È½Ï¿àÄÕµÄÊÂÇé,Èç¹ûÒ»¸öÒ»¸öµã"run"È¥±àÒëʵÔÚÌ«ÀË·Ñʱ¼äÁË.ÏëÍÑÀë"¿àº£",ÏÖÔھ͸ú×ÅżÃÇÒ»Æë×ß°É,²½ÈëAntµÄʹÓÃÀú³Ì.
1.°²×°Ant
a.ʹÓÃEclipse.3.2°æ±¾×Ô´øµÄAnt¿ÉÒÔÊ¡È ......
¹²ÏíÄÚ´æÔÚJavaÖÐʵÏÖºÍÓ¦ÓÃ
Õª×Ôhttp://zc4530.javaeye.com/blog/326186
1¡¢¹²ÏíÄÚ´æ¶ÔÓ¦Ó¦Óÿª·¢µÄÒâÒå
¶ÔÊìÖªUNIXϵͳӦÓÿª·¢µÄ³ÌÐòÔ±À´Ëµ£¬IPC£¨InterProcess Communication£©»úÖÆÊǷdz£ÊìϤµÄ£¬IPC»ù±¾°üÀ¨¹²ÏíÄÚ´æ¡¢ÐźŵƲÙ×÷¡¢ÏûÏ¢¶ÓÁС¢ÐźŴ¦ÀíµÈ²¿·Ö£¬ÊÇ¿ª·¢Ó¦ÓÃÖзdz£ÖØÒªµÄ±Ø²»¿ÉÉٵŤ¾ß¡£ÆäÖй²Ï ......
1. Multiply-Thread
Locks offer two primary features: mutual exclusion and visibility. Mutual exclusion means only one thread at a time may hold a given lock, so only one thread at a time will be using the shared data. Visibility is to ensure that changes made to shared data prior to releasing a lo ......