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

JavaÖмÆÊ±Æ÷µÄʹÓÃ

import java.util.Timer;
import java.util.TimerTask;
public class TimerExample
{
    /**
     * JavaÖмÆÊ±Æ÷µÄʹÓÃ
     * Time: 21:19 2010-1-5
     */
    Timer localTimer;
    public TimerExample(int seconds)
    {
        // Create local timer
        localTimer = new Timer();
       
        // Create local timer task and set the timer-parameter
        localTimer.schedule(new LocalTimerTask(), 0, seconds * 1000);
    }
   
    class LocalTimerTask extends TimerTask
    {
        int bitTest = 0xFFFFFFFF;
        int flag = 1;
        int temp = bitTest;
       
        // Override the abstract method of TimerTask
        // The run() will be called every per timer
        public void run()
        {
            if (temp < 0)
            {
                System.out.println(Integer.toBinaryString(temp));
                temp = bitTest & (~flag);
                flag <<= 1;
            }
   


Ïà¹ØÎĵµ£º

»ñµÃµ±Ç°¼ÆËã»úÈ«²¿IPµÄÒ»¸öjavaС³ÌÐò

import java.net.InetAddress;
//±¾³ÌÐòʵÏÖÁË»ñÈ¡±¾µØIPµØÖ·
public class IP {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
InetAddress localHost;
InetAddress []ip;
try{
localHost=InetAddress.getLocalHost();
ip=InetAddr ......

Java Àà·¾¶

¹ÜÀí Java Àà·¾¶£¨UNIX ºÍ Mac OS X£©
ÍøÖ·£º     http://www.ibm.com/developerworks/cn/java/j-classpath-unix/
×÷ÕßµÄÍøÕ¾£ºhttp://www.cafeaulait.org/
×ܽ᣺
²»¹ÜÀà·¾¶Óжàô¼¬ÊÖ£¬Äú¶¼¿ÉÒÔͨ¹ýһЩ¼òµ¥µÄ¹æÔò¶ÔËü¼ÓÒÔ¹ÜÖÆ£¬ÓÈÆäÊÇÒª¼ÇסÈçϵÄһЩԭÔò£º
½«Àà·Åµ½°üÖС£
Ñϸñ×ñÊØ°üºÍÀàµÄÃüÃûÔ¼¶¨ ......

java final ¹Ø¼ü×Ö ºÍ static Ó÷¨

ת×Ô
http://www.blogjava.net/hongzionline/archive/2007/09/19/146392.html
final ¹Ø¼ü×Ö ºÍ static Ó÷¨
Ò»¡¢final
¸ù¾Ý³ÌÐòÉÏÏÂÎÄ»·¾³£¬Java¹Ø¼ü×ÖfinalÓГÕâÊÇÎÞ·¨¸Ä±äµÄ”»òÕß“ÖÕ̬µÄ”º¬Ò壬Ëü¿ÉÒÔÐÞÊηdzéÏóÀà¡¢·Ç³éÏóÀà³ÉÔ±·½·¨ºÍ±äÁ¿¡£Äã¿ÉÄܳöÓÚÁ½ÖÖÀí½â¶øÐèÒª×èÖ¹¸Ä±ä£ºÉè¼Æ»òЧÂÊ¡ ......

JAVA Êý¾ÝÍÚ¾ò¹¤¾ß

http://hi.baidu.com/zhanghaooy/blog/item/52c3c246b636a7036b63e558.html
http://hi.baidu.com/hxtang/blog/item/2bb33c8265cd0aba6d81196d.html
http://hi.baidu.com/hxtang/blog/item/8221f10f8361112f6159f368.html
http://hi.baidu.com/zhanghaooy/blog/item/73a76c0fb9d2e2e7ab645758.html ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ