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

java Timer ѧϰ

TimerλÓÚjava.utilÏÂÃ棬һ°ã½ÐËûjava¼ÆʱÆ÷¡£
javaAPIµÄ½âÊÍÈçÏÂ:
Ò»ÖÖÏß³ÌÉèÊ©£¬ÓÃÓÚ°²ÅÅÒÔºóÔÚºǫ́Ïß³ÌÖÐÖ´ÐеÄÈÎÎñ¡£¿É°²ÅÅÈÎÎñÖ´ÐÐÒ»´Î£¬»òÕ߶¨ÆÚÖظ´Ö´ÐС£
ÏÈÀ´¿´¿´Ð§¹û£º
1.Éè¼Æ¼ÆʱÆ÷ 
import java.io.IOException;
import java.util.Calendar;
import java.util.Timer;
public class TimerTest {


public static void main(String args[]) {
Timer timer = new Timer();
ÔÚ1ÃëºóÖ´ÐдËÈÎÎñ,ÿ´Î¼ä¸ô2Ãë,Èç¹û´«µÝÒ»¸öData²ÎÊý,¾Í¿ÉÒÔÔÚij¸ö¹Ì¶¨µÄʱ¼äÖ´ÐÐÕâ¸öÈÎÎñ.
timer.schedule(new MyTask(), 1000, 2000);

while (true) {
int ch;
try {
ch = System.in.read();
if (ch - 'c' == 0) {
timer.cancel();// ʹÓÃÕâ¸ö·½·¨Í˳öÈÎÎñ
System.out.println("½áÊøÈÎÎñ!");
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}
}
}

2.²¼ÖÃÈÎÎñ£º
import com.db.BackupMysql;

public class MyTask extends java.util.TimerTask {
@Override
public void run() {

System.out.println("$$$$$ÃÀÔª¶à¶à$$$$$");
}

}


Ïà¹ØÎĵµ£º

JFreeChart (Java¿ªÔ´Í¼±í)

JFCÊÇÒ»¸öÇáÁ¿¼¶µÚÈý·½¿ªÔ´×é¼þ,²»ÒÀÀµÆäËû×é¼þ,ʹÓÃProject¼´¿É¡£
×÷ÓãºÒÔͼ±í·½Ê½Õ¹Ê¾Êý¾Ý
꿅᣼www.jfree.org
Àà¿â£ºJFreeChart¡¢JCommon(JFreeReportºÍJFreeChartµÄ¹«¹²Àà¿â)
Ö¸ÄÏ£º jfreechart-1.0.13-install.pdf
API: jfreechart-1.0.13-javadocs.zip
ѹËõ°ü£ºjfreechart-1.0.13
ant   ......

JavaÐéÄâ»úѧϰ±Ê¼ÇÒ»£ºÌåϵ½á¹¹

µÚÒ»ÕÂ.     JAVAÌåϵ½á¹¹½éÉÜ
µÚÒ»½Ú       ΪºÎʹÓÃJava:ƽ̨Î޹أ¬°²È«£¬ÍøÂçÒƶ¯ÐÔ
µÚ¶þ½Ú       Ìåϵ½á¹¹
1.          
JAVAÐéÄâ»úµÄ»ù±¾½á¹¹Í¼£º
2.    & ......

Effective Java ѧϰ±Ê¼Ç£¨13£©

Ó°ÏìÄ£¿éÉè¼ÆºÃÓ뻵µÄÒ»¸öÖØÒªÒòËؾÍÊÇÕâ¸öÄ£¿éÊÇ·ñÒþ²ØËüµÄÄÚ²¿Êý¾ÝºÍÆäËûһЩʵÏÖϸ½Ú¡£ ÐÅÏ¢Òþ²ØµÄºÃ´¦£º·½±ã¶ÀÁ¢¿ª·¢£¬²âÊÔ£¬ÓÅ»¯£¬Ê¹Óã¬Àí½âºÍÐ޸ġ£Äܹ»Ìá¸ßϵͳ¿ª·¢ËÙ£¨ÒòΪ¸÷Ä£¿é¿ÉÒÔ²¢Ðпª·¢£©£¬Ò²ÄÜÒ×ÓÚά»¤ºÍµ÷ÊÔ£¬Ò²ÄܼõÉÙϵͳ¹¹½¨µÄ·çÏÕ¡£ ......

JAVAÄÚ´æÒç³ö½âÎö

  Ô­ÒòÓкܶàÖÖ£¬±ÈÈ磺
1.Êý¾ÝÁ¿¹ýÓÚÅÓ´ó£»ËÀÑ­»· £»¾²Ì¬±äÁ¿ºÍ¾²Ì¬·½·¨¹ý¶à£»µÝ¹é£»ÎÞ·¨È·¶¨ÊÇ·ñ±»ÒýÓõĶÔÏó£»
2.ÐéÄâ»ú²»»ØÊÕÄڴ棨ÄÚ´æй©£©£»
    ˵°×Á˾ÍÊdzÌÐòÔËÐÐÒªÓõ½µÄÄÚ´æ´óÓÚÐéÄâ»úÄÜÌṩµÄ×î´óÄÚ´æ¾Í·¢ÉúÄÚ´æÒç³öÁË¡£ ÄÚ´æÒç³öµÄÎÊÌâÒª¿´ÒµÎñºÍϵͳ´óС¶ø¶¨£¬¶ÔÓÚijЩϵͳ¿ÉÄÜÄÚ´æ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ