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

java ¼ÆʱÆ÷

class NewTask extends java.util.TimerTask{
   private  String HOUR_MASK = "0";
      private String MIN_MASK = "0";
      private String SEC_MASK = "0";
      private int hour;
   private int min;
   private int sec;
   private String s;
   private String m;
   private String h;
      public void run() {
       sec+=1;
       if(sec>59)
       {
        if(min==59)
        {
         //ÃëºÍ·Ö¶¼Îª59ʱ¼ÓһСʱ
         hour+=1;
         min=0;
        }
        else
        {
         //µ±·Ö²»Îª59ʱ
         min+=1;
        }
        sec=0;    
       }
        if(sec<10)
        {
          s=(SEC_MASK +  sec);
        }else
        {
         s=Integer.toString(sec);
        }
        if(min<10)
        {
          m=(MIN_MASK + min);
        }else
        {
         m=Integer.toString(min);
   


Ïà¹ØÎĵµ£º

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ÈçºÎ±éÀúMapµÄËùÓеÄÔªËØ

Map map = new HashMap(); 
Iterator it = map.entrySet().iterator(); 
while (it.hasNext()) { 
Map.Entry entry = (Map.Entry) it.next(); 
Object key = entry.getKey(); 
Object value = entry.getValue(); 

......

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·Ö± ......

C++ÓëJavaµÄÇø±ðÏê½â:

1.JavaÔÚÐéÄâ»úÉÏÔËÐР
JavaÔ´´úÂë²¢²»ÊDZ»±àÒë³ÉΪÆÕͨµÄ»úÆ÷´úÂë¡£¶øÊDZ»·­Òë³ÉΪÐéÄâ»ú¿ÉÒÔÖ´ÐеĴúÂë¡£Ò»¸öJava½âÊÍÆ÷×îÖÕÖ´ÐÐÕâЩ´úÂë¡£ÕâÆäÖÐûÓÐÁ¬½ÓµÄ¹ý³Ì£»½âÊÍÔÚÐèÒªµÄʱºò¶¯Ì¬µÄ¼ÓÔØһЩÀࣻ 
2.JavaÊÇÍêÈ«ÃæÏò¶ÔÏóµÄ 
JavaÊÇÒ»ÖÖÍêÈ«ÃæÏò¶ÔÏóµÄÓïÑÔ¡£ÕâÒâζ×ÅÄã¶ÔÈκÎÒ»¸öJava¶ÔÏóËù×öµÄ¶ ......

java web²¿Êð


 ¸÷Èí¼þʹÓð汾
£º
  Tomcat
°æ±¾£º
apache-tomcat-5.5.17
  Jdk
°æ±¾£º
jdk1.6.0_11
  Mysql
°æ±¾£º
mysql-5.0.77-win32
 
1.      
jdk
°²×°
н¨ÏµÍ³±äÁ¿
JAVA_HOME
£º
C:\Program Files\Java\jdk1.6.0_11
×¢Ò⣺½¨¹ýÖ®ºó¿ÉÒÔÊÔһϣ¬·ñÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ