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;
}
Ïà¹ØÎĵµ£º
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 Àà·¾¶£¨UNIX ºÍ Mac OS X£©
꿅᣼ http://www.ibm.com/developerworks/cn/java/j-classpath-unix/
×÷ÕßµÄÍøÕ¾£ºhttp://www.cafeaulait.org/
×ܽ᣺
²»¹ÜÀà·¾¶Óжàô¼¬ÊÖ£¬Äú¶¼¿ÉÒÔͨ¹ýһЩ¼òµ¥µÄ¹æÔò¶ÔËü¼ÓÒÔ¹ÜÖÆ£¬ÓÈÆäÊÇÒª¼ÇסÈçϵÄһЩÔÔò£º
½«Àà·Åµ½°üÖС£
Ñϸñ×ñÊØ°üºÍÀàµÄÃüÃûÔ¼¶¨ ......
ת×Ô
http://www.blogjava.net/hongzionline/archive/2007/09/19/146392.html
final ¹Ø¼ü×Ö ºÍ static Ó÷¨
Ò»¡¢final
¸ù¾Ý³ÌÐòÉÏÏÂÎÄ»·¾³£¬Java¹Ø¼ü×ÖfinalÓГÕâÊÇÎÞ·¨¸Ä±äµÄ”»òÕß“ÖÕ̬µÄ”º¬Ò壬Ëü¿ÉÒÔÐÞÊηdzéÏóÀà¡¢·Ç³éÏóÀà³ÉÔ±·½·¨ºÍ±äÁ¿¡£Äã¿ÉÄܳöÓÚÁ½ÖÖÀí½â¶øÐèÒª×èÖ¹¸Ä±ä£ºÉè¼Æ»òЧÂÊ¡ ......
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 ......