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

Developing Games in Java£¨²¿·Ö£©

   Ô­ÎÄÀ´×ÔÓÚ¡¶Developing Games in Java¡·£¬×÷ÕߣºDavid Brackeen, Bret Barker, Laurence Vanhelsuwé
   JavaÔÚÉè¼ÆÊ±³ä·Ö¿¼ÂÇÁËÏß³Ì,Òò´ËÔÚJavaÖÐÏ̵߳IJÙ×÷±ÈÆäËûÓïÑÔÒª¼òµ¥¡£Ö»ÐèÉú³ÉÒ»¸öThreadÀàµÄʵÀý±ã¿É´´½¨Ò»¸öỊ̈߳¬È»ºóµ÷ÓÃstart()·½·¨Ïß³Ì¾ÍÆô¶¯ÁË¡£
       Thread myThread=new Thread();
       myThread.start();
       µ±È»£¬Õâ¶Î´úÂëûÓÐÈκÎʵ¼ÊÒâÒ壬ÒòΪ¸ÃÏß³ÌÖÐûÓаüº¬ÈκÎÈÎÎñ¡£JavaÐéÄâ»ú´´½¨Ò»¸öеÄϵͳÏ̺߳󣬱ãÆô¶¯¸ÃỊ̈߳¬È»ºóThread¶ÔÏóµÄrun()·½·¨±»µ÷Óá£Ä¬ÈÏÇé¿öÏ£¬run()·½·¨²»×öÈκι¤×÷£¬Òò´Ë£¬Ï̱߳ãËæ¼´Í£Ö¹¡£
       Èç¹ûÏëÈÃÏß³ÌÍê³ÉijÏîÈÎÎñ£¬ÔÚrun()·½·¨ÖÐÌí¼ÓÏàÓ¦´úÂë¼´¿É¡£ÓÐÈýÖÖ»ù±¾µÄ·½·¨¿ÉÒÔʵÏÖÕâÒ»²Ù×÷:
1£¬¼Ì³ÐÀ©Õ¹ThreadÀà
2£¬ÊµÏÖRunnable½Ó¿Ú
3£¬Ê¹ÓÃÄäÃûÄÚ²¿Àà
¼Ì³ÐÀ©Õ¹ThreadÀà
       ¸øÏ̷߳ÖÅäÈÎÎñµÄÒ»¸ö¿ì½ÝµÄ·½·¨ÊǼ̳ÐÀ©Õ¹ThreadÀ࣬²¢ÖØÐ´run()·½·¨£º
public class MyThread extends Thread {
           public void run() {
                System.out.println("Do something cool here.");
           }
}
È»ºó´´½¨ºÍÆô¶¯Ị̈߳º
Thread myThread = new MyThread();
myThread.start();
ÏÖÔÚÓÐÁ½¸öÏß³ÌÕýÔÚÔËÐУºmainÖ÷Ï̺߳ÍÄã¸Õ²ÅÆô¶¯µÄÄǸöÏ̡߳£
ʵÏÖRunnable½Ó¿Ú
       ¼Ì³ÐÀ©Õ¹ThreadÏ̹߳ÌÈ»¼òµ¥£¬µ«´ó¶àÊýÇé¿öÏÂÄã¿ÉÄÜÖ»ÊÇÏëÆô¶¯Ò»¸öÏ̶߳ø²¢·ÇÖØÐ±àдÀà¡£ÀýÈ磺ÓÐÒ»¸öÀàÒѾ­¼Ì³ÐÀ©Õ¹ÁËÆäËûÀ࣬µ«ÄãÈÔÏ£Íû½«Ëü×÷Ϊһ¸öÏ̡߳£ÔÚÕâÖÖÇé¿öÏÂÖ»ÓÐʵÏÖRunnable½Ó¿Ú£º
public class MyClass extends SomeOtherClass implements Runnable {
    public MyClass() {
        Thread thread = new Thread(this);
        thread.start();
    }
    public void run() {
       &n


Ïà¹ØÎĵµ£º

Java ʹÓÃSSH¿ò¼Ü¿ª·¢Jsp ·½±ã£¬¿ì½Ý£¬¼òµ¥

Impl
public class BaseDAOImpl extends HibernateDaoSupport implements IBaseDAO
 //Ìí¼ÓÊý¾Ý
 this.getHibernateTemplate().save(achi);
 //ɾ³ý
 this.getHibernateTemplate().delete(this.getById(achi));
 //²éѯËùÓÐ
return this.getHibernateTemplate().find("from Achievement a ......

java ·¢ËÍgetºÍpostÇëÇó

URLµÄopenConnection()·½·¨½«·µ»ØÒ»¸öURLConnection¶ÔÏ󣬸öÔÏó±íʾӦÓóÌÐòºÍ URL Ö®¼äµÄͨÐÅÁ´½Ó¡£³ÌÐò¿ÉÒÔͨ¹ýURLConnectionʵÀýÏò¸ÃURL·¢ËÍÇëÇó¡¢¶ÁÈ¡URLÒýÓõÄ×ÊÔ´¡£
ͨ³£´´½¨Ò»¸öºÍ URL µÄÁ¬½Ó£¬²¢·¢ËÍÇëÇó¡¢¶ÁÈ¡´Ë URL ÒýÓõÄ×ÊÔ´ÐèÒªÈçϼ¸¸ö²½Ö裺
£¨1£©Í¨¹ýµ÷ÓÃURL¶ÔÏóopenConnection()·½·¨À´´´½¨URLConnectio ......

Java´úÂëÓÅ»¯·ÖÎö

¿É¹©³ÌÐòÀûÓõÄ×ÊÔ´£¨ÄÚ´æ¡¢CPUʱ¼ä¡¢ÍøÂç´ø¿íµÈ£©ÊÇÓÐÏ޵ģ¬ÓÅ»¯µÄÄ¿µÄ¾ÍÊÇÈóÌÐòÓþ¡¿ÉÄÜÉÙµÄ×ÊÔ´Íê³ÉÔ¤¶¨µÄÈÎÎñ¡£ÓÅ»¯Í¨³£°üº¬Á½·½ÃæµÄÄÚÈÝ£º¼õС´úÂëµÄÌå»ý£¬Ìá¸ß´úÂëµÄÔËÐÐЧÂÊ¡£±¾ÎÄÌÖÂÛµÄÖ÷ÒªÊÇÈçºÎÌá¸ß´úÂëµÄЧÂÊ¡£
ÔÚJava³ÌÐòÖУ¬ÐÔÄÜÎÊÌâµÄ´ó²¿·ÖÔ­Òò²¢²»ÔÚÓÚJavaÓïÑÔ£¬¶øÊÇÔÚÓÚ³ÌÐò±¾Éí¡£Ñø³ÉºÃµÄ´úÂë±àдϰ¹ß ......

JavaÀûÓÃMSNPЭÒéµÇ¼MSN

Çë²Î¼ûÉÏһƪÎÄÕ£¬µÇ¼MSNЭÒé
¾ßÌåJavaʵÏÖ:
ÃüÁîÐòÁУº<<´ú±í·¢ËÍ,>>´ú±í½á¹û
1.Á¬½ÓDS(Dispatcher Server)£¬µÃµ½NS(Notification Server)
<<VER 1 MSNP18 CVR0
>>VER 1 MSNP18
<<CVR 2 0x0804 winnt 5.1 i386 MSNMSGR 14.0.8089.0726 msmsgs yourAccount
>>CVR 2 14.0.8089 ......

AndroidС֪ʶһ: ´ÓÃüÁîÐÐÆô¶¯JavaÓ¦ÓÃ&Ôö¼ÓJavaÓ¦ÓÃ


1.              
Ôö¼ÓJavaÓ¦ÓÃ
ÔÚandroid_2.1/packages/appsÔö¼Ó¸ÃÏîÄ¿£»
ÔÚbuild/target/product/generic.mkµÄPRODUCT_PACKAGESºóÃæÔö¼Ó¶ÔÓ¦°üµÄÃû×Ö¡£
 
1.1          
´ÓÃüÁîÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ