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;
}
Ïà¹ØÎĵµ£º
File.separatorChar ·µ»ØÒ»¸ö×Ö·û£¬±íʾµ±Ç°ÏµÍ³Ä¬ÈϵÄÎļþÃû·Ö¸ô·û£¬ÔÚWindowsÖÐΪ"\",unixÖÐΪ"/"¡£
File.separator ÓëǰÕßÏàͬ£¬µ«½«·Ö¸ô·û×÷Ϊ×Ö·û´®ÀàÐÍ·µ»Ø¡£
pathSeparatorChar ·µ»ØÒ»¸ö×Ö·û£¬±íʾµ±Ç°ÏµÍ³Ä¬ÈϵÄ·¾¶Ãû·Ö¸ô·û£¬ÔÚWindowsÖÐΪ";",unixÖÐΪ":"¡£
File.pathSeparator ÓëǰÕßÏàͬ£¬µ«½«·Ö¸ô·û×÷Ϊ×Ö· ......
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µÄ³õѧÕß¶ÔStringµÄ´æ´¢ºÍ¸³ÖµÓÐÃÔ»ó£¬ÒÔÏÂÊÇÒ»¸öºÜ¼òµ¥µÄ²âÊÔÓÃÀý£¬ÄãÖ»ÐèÒª»¨¼¸·ÖÖÓʱ¼ä±ã¿ÉÀí½â¡£
1.ÔÚ¿´Àý×Ó֮ǰ£¬È·±£ÄãÀí½âÒÔϼ¸¸öÊõÓ
Õ» £ºÓÉJVM·ÖÅäÇøÓò£¬ÓÃÓÚ±£´æÏß³ÌÖ´Ðе͝×÷ºÍÊý¾ÝÒýÓá£Õ»ÊÇÒ»¸öÔËÐеĵ¥Î»£¬JavaÖÐÒ»¸öÏ߳̾ͻáÏàÓ¦ÓÐÒ»¸öÏß³ÌÕ»ÓëÖ®¶ÔÓ¦¡£
¶Ñ £ºÓÉJVM·ÖÅäµÄ£¬ÓÃÓÚ´æ´¢¶Ô ......
javac£ºJava±àÒëÆ÷£¬½«JavaÔ´´úÂë»»³É×Ö½Ú´ú
java£ºJava½âÊÍÆ÷£¬Ö±½Ó´ÓÀàÎļþÖ´ÐÐJavaÓ¦ÓóÌÐò´úÂë
appletviewer(С³ÌÐòä¯ÀÀÆ÷)£ºÒ»ÖÖÖ´ÐÐHTMLÎļþÉϵÄJavaС³ÌÐòÀàµÄJavaä¯ÀÀÆ÷
javadoc£º¸ù¾ÝJavaÔ´´úÂë¼°Æä˵Ã÷Óï¾äÉú³ÉµÄHTMLÎĵµ
jdb£ºJavaµ÷ÊÔÆ÷£¬¿ÉÒÔÖðÐеØÖ´ÐгÌÐò¡¢ÉèÖöϵãºÍ¼ì²é±äÁ¿
javah£º²úÉú¿ÉÒÔµ÷Ó ......
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 ......