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

javaµÄ»Øµ÷¼¼Êõdz̸

ÎÒÃǾ­³£»áÓÃSystem.currentTimeMillis()ÔÚʼþ¿ªÊ¼Ç°ºÍ½áÊøºóÉèÖÃÒ»¸ö¿ªÊ¼Ê±¼äºÍ½áÊøÊ±¼ä£¬ÓÃËûÃǵIJî×÷Ϊ³ÌÐòÖ´ÐеÄʱ¼ä¡£
ÎÒÃDz»·Á¶¨ÒåÒ»¸ö½Ó¿ÚÓÃjava»Øµ÷À´ÊµÏÖ¶¯Ì¬¼ÆËã¡£
½Ó¿Ú¶¨Ò壺
package com.hd123.h5.ejb.verctrl;
public interface CallBack {
  public void callBack();
}
È»ºóÊÇʵÏÖÕâ¸ö½Ó¿Ú
package com.hd123.h5.ejb.verctrl;
public class Run {
  //ÓÉÓÚ½Ó¿ÚÖÐµÄ callBack·½·¨ÊÇûÓж¨ÒåµÄ£¬ËùÒÔÓÃÒ»¸ö½Ó¿Ú¶ÔÏóÖ´ÐÐcallBack()·½·¨£¬ÆäʵÊÇδ֪µÄ£¬ÎÒÃǾßÌåÐèҪʵÏֵķ½·¨
  //¿ÉÒÔͨ¹ýcallBack()£¬Õâ¸ö·½·¨µÄ²»Í¬ÊµÏÖÀ´ÊµÏÖ¶¯Ì¬¼ÆÊ±¡£
  private void run(CallBack callBack, String event) {
    long startTime = System.currentTimeMillis();
    callBack.callBack();
    long endTime = System.currentTimeMillis();
    System.out.print("Ö´ÐÐ" + event + "¹²ÏûºÄ" + (endTime - startTime) + "ms");
  }
  public static void main(String[] args) {
    Run r=new Run();
//ÕâÀﶯ̬µÄʵÏÖcallBack·½·¨¡£
    r.run(new CallBack(){
      public void callBack() {
        for(int i=0;i<999;i++){
          for(int j=i+1;j<99999;j++){
          }
        }
      }
     
    }, "Ñ­»·");
  }
}


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

javaʹÓÃrocksawºÍvserv tcpipʵÏÖ»ùÓÚICMPµÄPing¹¦ÄÜ

Ò»£º×¼±¸ www.savarese.org download
 1.  rocksaw-1.0.0-src.tar.gz
 2.  vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
 1.  build vserv-tcpip-0.9.2-src
      ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃæ½¨Ò»¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......

ÉîÒ¹ÏÐÁÄJavaÓëPHP ÒÔ¼°¼Ü¹¹Éè¼ÆË¼ÏëÓë×î¼Ñʵ¼ù

ÉîÒ¹ÏÐÁÄJavaÓëPHP ÒÔ¼°¼Ü¹¹Éè¼ÆË¼ÏëÓë×î¼Ñʵ¼ù
·¢ÐÅÈË: wesley (ÐÄÖеÄÉ­ÁÖ), ÐÅÇø: Java
±ê  Ìâ: ÉîÒ¹ÏÐÁÄJavaÓëPHP ÒÔ¼°¼Ü¹¹Éè¼ÆË¼ÏëÓë×î¼Ñʵ¼ù
·¢ÐÅÕ¾: ˮľÉçÇø (Thu Dec 24 01:55:04 2009), Õ¾ÄÚ
×ªÔØ×Ô±¾ÈËÐÂÀ˲©¿Í
http://blog.sina.com.cn/s/blog_53923f940100g7xx.html
£¨ÀÏÎâ×ÔÑÔ×ÔÓ
×î½üƵ·±ÌýË ......

javaÎı¾¿òÄÚÈݸıäʼþ

×÷Ϊһ¸ö¿çƽ̨µÄ±à³Ì½â¾ö·½°¸£¬JavaÏÔÈ»²»ÄÜÏñDelphiÄÇÑù£¬ÔÚÓû§½çÃæÉè¼Æ·½ÃæÌṩǿ´ó¡¢Ö±¹ÛºÍ¿ì½ÝµÄÉè¼ÆÖ§³Ö¡£±ÈÈç¶ÔÓÚÎı¾¿òµÄ¿ØÖÆ£¬µ±ÎÒÃÇ ÒªÔÚ³ÌÐòÖиÐÖªÓû§ÊÇ·ñÐÞ¸ÄÁËÎı¾¿òÖеÄÄÚÈÝʱ£¬DelphiÌṩÁËÒ»¸öÖ±½ÓµÄʼþµ÷ÓÃOnValueChanged()£¬¿ÉÒÔÔÚÎı¾¿òÄÚÈݵõ½Êµ¼ÊµÄ¸Ä ¶¯Ê±±»¼¤»î¡£¶øÒªÔÚJavaÖÐʵÏÖÕâÒ»¹¦ÄܾÍËÆºõ ......

JavaʵÏÖ½«Mapת»»ÎªListµÄС´úÂë

import java.util.ArrayList; 
import java.util.HashMap; 
import java.util.Iterator; 
import java.util.List; 
import java.util.Map; 
public class ConvertMapToList {
    /**
     * ʵÏÖ½«HashMapת»»³ÉΪArrayList£¬²¢½«mapµÄKey ¡¢Value·Ö± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ