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

Java¶¨Ê±ÈÎÎñµÄʵÏÖ

¢Ù¼Ì³ÐTimerTask£¬ÖØÐ´run·½·¨
package bamboo.task;
import java.util.TimerTask;
public class TimeTaskTest extends TimerTask{
 @Override
 public void run() {
  System.out.println("hi");
 }
}
¢Úͨ¹ýtimerÀ´ÉèÖÃij¸öʱ¼äÀ´µ÷Ó㬻òÕßÊÇÏà¸ô¶à³¤Ê±¼äµ÷ÓÃ
package bamboo.test;
import java.util.Date;
import java.util.Timer;
import bamboo.task.TimeTaskTest;
public class TimeTest {
 static TimeTaskTest test=new TimeTaskTest();
 
 public static void main(String [] args){
  Timer timer=new Timer();
  
  //Æô¶¯ºÍ¼ä¸ôµÄʱ¼ä 1000ºÁÃë
  
  //timer.schedule(test,0,1000);
  
  //ÉèÖÃʲôʱºòÖ´ÐÐ
  //timer.schedule(test, new Date());
 }
}


Ïà¹ØÎĵµ£º

java SSL°²È«socketµÄͨѶʵÀý javaѧϰ±Ê¼Ç(4)

ѧϰÁËSSLµÄ»ù±¾Ô­Àíºó..¶¯ÊÖÓÃjavaÀ´ÊµÏÖÁËÒ»¸ö°²È«Á¬½ÓµÄʵÀý..
1.ʹÓÃkeytool´´½¨ÃÜÔ¿¶Ô..²¢ÔÚ·þÎñ¶ËºÍ¿Í»§¶ËÍê³É·ÖÅä..¾ßÌå·½·¨¿É²Î¿´:java-ʹÓÃkeytoolÀ´´´½¨¹ÜÀíÃÜÔ¿¼°Ö¤ÊéµÈ-javaѧϰ±Ê¼Ç(3)
2.½¨Á¢¿Í»§¶ËºÍ·þÎñ¶ËµÄsocketʵÀý:
¿Í»§¶Ë´úÂëÈçÏÂ:
public class SSLClient {
public static void startSSLClie ......

JavaʵÏÖµÄ3D¼ÆËã»úͼÐÎÀà¿âÓëÒýÇæ

¿çƽ̨ÈýάͼÐοª·¢¹¤¾ß°üJava 3D
    ¹Ù·½Ö÷Ò³£ºhttps://java3d.dev.java.net/
    Java 3DÑϸñ×ñÑ­“½¨Ä££­»æÖÆ”·ºÐÍ¡£³¡¾°Í¼£¨scene graph£©µÄ³éÏóÄ£Ðͱ»ÓÃÀ´×éÖ¯ºÍά»¤ÐéÄⳡ¾°ÖеĿÉÊǶÔÏó¼°ÆäÐÐΪ¡£³¡¾°Í¼°üº¬ÁËÐéÄâͼÐÎÊÀ½çµÄÈ«²¿ÐÅÏ¢£¬Java 3D»æÖÆÒýÇæ»á¶Ô³¡¾°Í¼½øÐÐ×Ô ......

java cstÊ±Çø×ª»»


BODY { color: #000000; font-size: 9pt; font-family: ËÎÌå }
TABLE { font-size: 9pt; font-family: ËÎÌå }
SimpleDateFormat sdfy = new SimpleDateFormat("HH:mm"); 
        String tt =
"Tue Feb 09 10:43:00 CST 2010";
   &n ......

java ¸ñʽ»¯Êä³ö

Ò»¡¢java.util.Formatter
 
java.util.Formatter ÊÇJDK1.5ÐÂÔöµÄÀà¿â£¬¹¦ÄܺÜÇ¿´ó£¬µ«ÊDz»ºÃÕÆÎÕ£¬¾ÍÏñÏÂÆåÒ»Ñù£¬ÖªµÀÈçºÎ×߯å×Ó£¬ºÍÊìÁ·Ó¦ÓÃÍêÈ«ÊÇÁ½ÂëÊ¡£
 
¸ñʽ»¯Ö÷ÒªÓÃÔÚÎı¾Êä³ö·½Ã棬±ÈÈ磬Êý×Ö¡¢ÈÕÆÚ¡¢½ð¶îµÈ£¬»¹ÓÐÀàËÆ³¬ÊеĹºÎﵥСƱµÈµÈ£¬¶¼»áÓõ½¸ñʽ»¯Êä³öµÄ¹¤¾ß¡£ÔÚ´ËÀàû³öÏÖ֮ǰ£¬Ö»ÄÜͨ¹ý¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ