Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÀàµÄÇø±ð

JavaÃæÊÔÖУ¬×î³£±»ÈËÎʵ½µÄ¼¸¸öÎÊÌ⣺
1. java.util.*°üµÄUML½á¹¹Í¼¡£
2. VectorºÍArrayList¡¢LinkedListÇø±ð  Hashtable ºÍ HashMapÖ®¼äµÄÇø±ð
3. String¡¢StringBuffer£¬StringBuilderÖ®¼äÇø±ð¡£
--»Ø´ð--
1.
Collection
  |
  |_List
  |  |_LinkedList
  |  | ......

JavaÀûÓÃMSNPЭÒéÈ¡µÃMSNÁªÏµÈË

ÉÏһƪÎÄÕÂÖнéÉÜÁËÔõÑùÀûÓÃMSNPµÇ¼MSN£¬ÔڵǼºó±ã¿ÉÈ¡ÁªÏµÈËÁË£¬ºÜ¼òµ¥¡£
²Î¿¼ÎÄÕ£º
http://msnpiki.msnfanatic.com/index.php/MSNP13:Contact_List
http://msnpiki.msnfanatic.com/index.php/MSNP15:TicketTokens
ÔڵǼºó£¬¿ÉÒԵõ½Ò»¸öcontacts.msn.comµÄticketToken£¬Õâ¿ÉÓÃÓÚºóÐøµÄÑéÖ¤
Ò»ÖÖ·½·¨ÊǼÓÈëÒ»¸öMS ......

javaÖжѣ¨heap)ºÍ¶ÑÕ»£¨stack)ÓÐÊ²Ã´Çø±ð

//ת×Ôhttp://pterodactyl.javaeye.com/blog/345892
stack ºÍ heep ¶¼ÊÇÄÚ´æµÄÒ»²¿·Ö
stack ¿Õ¼äС£¬ËٶȱȽϿ죬 ÓÃÀ´·Å¶ÔÏóµÄÒýÓÃ
heep ´ó£¬Ò»°ãËùÓд´½¨µÄ¶ÔÏó¶¼·ÅÔÚÕâÀï¡£
Õ»(stack):ÊÇÒ»¸öÏȽøºó³öµÄÊý¾Ý½á¹¹,ͨ³£ÓÃÓÚ±£´æ·½·¨(º¯Êý)ÖеIJÎÊý,¾Ö²¿±äÁ¿.
ÔÚjavaÖÐ,ËùÓлù±¾ÀàÐͺÍÒýÓÃÀàÐͶ¼ÔÚÕ»Öд洢.Õ»ÖÐÊý¾ÝµÄÉ ......

Java Éú³ÉÑéÖ¤Âë


javaÉú³ÉÑéÖ¤Âë
ÓкܶàÖÖ·½Ê½£¬ÔÚÍøÉÏÒ²Óкܶà´úÂ룬µ«ÊÇÄÇЩÉú³ÉµÄЧ¹û£¬¸Ð¾õ¶¼²»ÊÇÌØ±ðºÃ£¬ËùÒÔÎÒÔÚËûÃǵĻù´¡ÉϸÄÁ¼ÁËһЩ¡£
µ«ÄÜ»¹¿ÉÒÔÓÃjmagick ,Éú³ÉºÜ¶àºÜìŵÄÑéÖ¤Âë¡£¹ýÁ½ÌìÑо¿Ï¡£ÏȰÑ×î½ü¸ÄµÄÕâ¸ö·¢²¼Ï¹©ÅóÓÑÃDzΡ£
¿ÉÒÔÏÈ¿´¿´ÑùÀý¡£×î½üÔÚ×öÕâ¸öÍøÕ¾¡£´ó¼ÒÓÐÐËȤ¿ÉÒԽн»Á÷¡£Ô¼»á360 ÍøÖ·:  www.yue ......

javaÊ÷Ðνṹ Ëã·¨

×î½ü¿´µ½Ò»¸öÓÐÒâ˼µÄÊ÷Ðνṹ£¬ÎªÃ¿¸ö½ÚµãÌí¼ÓÁËlft
ºÍ
rgt
Á½¸öÊôÐÔ¡£ÕâÑù²éÕҸýڵãµÄ×ӽڵ㡢
²éÕҸýڵãËùÓи¸½Úµã£¬¾Í²»ÓÃÈ¥µÝ¹é²éѯ£¬Ö»ÐèÒªÓÃ
between
¡¢
and
Óï¾ä¾Í¿ÉÒÔʵÏÖ¡£ÏÂÃæÒÔ´´½¨Ò»¸öÀ¸Ä¿Ê÷ΪÀý£¬ÒÔÏÂÊÇÎÒµÄÀí½â¡£
¡¡¡¡Ò»°ãÀ´½²£¬ÎÒÃÇ´´½¨À¸Ä¿Ê÷µÄʱºò£¬´ó¶àÖ»ÐèÒªÒ»¸öÍâ¼üparentid
À´Çø·Ö¸Ã½Úµã ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ