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

ºÚÝ®JavaÓ¦Óÿª·¢»·¾³

ÉèÖà win xp/win 7 µÄºÚÝ®JavaµÄ¿ª·¢»·¾³µÄ²½ÖèÈçÏ£º
1. BlackBerryÓ¦Óÿª·¢»ùÓÚJava£¬Ê×ÏÈÐèÒªJDK £¨6.0ÒÔÉϵİ汾£©
ÏÂÔØ×îÐÂJDK
ÏÂÔØÍêºóË«»÷°²×°¼´¿É¡£
2. ÏÂÔØBlackBerry SDK£¬ÕâÀïÓÐÁ½ÖÖÑ¡Ôñ£º BlackBerry JDE, BlackBerry Java Plug-in with Eclipse
2.1 BlackBerry JDEÊÇRIM×ÔÖ÷¿ª·¢µÄIDE
ÏÂÔØ BlackBerry JDE
2.2 ÅäÖÃÁË BlackBerry Java Plug-in µÄEclipse
2.2.1 °²×°EclipseºÍBlackBerry JavaPlug-in
ÏÂÔØEclipse 3.5
ÏÂÔØBlackBerry Java Plug-in 1.1
°²×°Plug-inʱҪָ¶¨EclipseĿ¼
2.2.2 °²×°BlackBerry Java Plug-in Eclipse¸üÐÂ
Ö±½Ó´ÓEclipseÀï¸üУº Help->Install New Software->Add Site£¬ÔÚLocationÀïÌîÈ룺
http://www.blackberry.com/go/eclipseUpdate/3.5/java
µã»÷Next£¬Eclipseºó¶ËÓë·þÎñÆ÷½»»¥£¬Ö®ºóÏÔʾEclipse JDE ComponentsÁÐ±í£¬´Ó4.5°æ±¾µ½Ä¿Ç°µÄ5.0°æ±¾¡£Ò»°ãÊÇʹÓÃ×î³Ù°æ±¾½øÐпª·¢£¬Ö»ÒªÑ¡5.0°æ¡£Èç¹ûÐèҪά»¤²»Í¬°æ±¾£¬½¨ÒéÈ«Ñ¡¡£µã»÷NextÏÂÔØ°²×°¡£
×¢ÒâÕâÒ»²½ÐèÒª±È½Ï³¤µÄʱ¼ä¶øÇÒ²»ÄÜÓÐÖжϻò´íÎó¡£°²×°Íê±ÏºóEclipse»áÌáÐÑÖØÆô¡£Èç¹û°²×°³É¹¦£¬ÔÚEclipse¿ÉÒÔ¿´¼û£ºFile->New Project->BlackBerry->BlackBerry Project
С½¨Ò飺
JDEºÍEclipseÁ½ÖÖ·½Ê½×îºÃ¶¼°²×°£¬ÕâÑù°²×°Ç©ÃûkeyµÄʱºò¿ÉÒÔÏÈÓÃJDE°²×°£¬È»ºóÓÃEclipse´ÓJDEÀïµÄBinĿ¼ImportÇ©ÃûKey¡£


Ïà¹ØÎĵµ£º

javaÖеĽӿÚ

        javaÖнӿÚÔÚ¿ª·¢ÖÐÕ¼ÖØÒªµØλ
   £¨1£©½Ó¿ÚÖеÄËùÓз½·¨¶¼ÊÇpublic abstract
   £¨2£©ÔÚ½Ó¿ÚÖÐÉùÃ÷·½·¨Ê±£¬²»ÄÜʹÓÃnative£¬static£¬final£¬synchronized£¬private£¬protectµÈÐÞÊηû£¬¼´Ö»ÄÜʹÓÃpublic abstract£¨Ä¬ÈÏ£©
    ......

javaÖÐthisµÄÓ÷¨

תÌûthisµÄÓ÷¨·½±ã×Ô¼ºÒÔºó²é¿´
±ØÐëÓÃthis¹Ø¼ü×ÖµÄÈýÖÖÇé¿ö:
   1¡¢ÎÒÃÇÏëͨ¹ý¹¹Ôì·½·¨½«Íⲿ´«ÈëµÄ²ÎÊý¸³Öµ¸øÀàµÄ³ÉÔ±±äÁ¿£¬¹¹Ôì·½·¨µÄÐÎʽ²ÎÊýÃû³ÆÓëÀàµÄ³ÉÔ±±äÁ¿ÃûÏàͬ¡£ÀýÈ磺
        class Person
        .. ......

java ·þÎñÆ÷µÄ¶Ô±È

TomcatÊÇÒ»¸ö¿ª·ÅÔ´´úÂë¡¢ÔËÐÐservletºÍJSP WebÓ¦ÓÃÈí¼þµÄ»ùÓÚJavaµÄWebÓ¦ÓÃÈí¼þÈÝÆ÷¡£TomcatÓÉApache-Jakarta×ÓÏîÄ¿Ö§³Ö²¢ÓÉÀ´×Ô¿ª·ÅÐÔÔ´´úÂëJavaÉçÇøµÄÖ¾Ô¸Õß½øÐÐά»¤¡£Tomcat ServerÊǸù¾ÝservletºÍJSP¹æ·¶½øÐÐÖ´Ðеģ¬Òò´ËÎÒÃǾͿÉÒÔ˵Tomcat ServerҲʵÐÐÁËApache-Jakarta¹æ·¶ÇұȾø´ó¶àÊýÉÌÒµÓ¦ÓÃÈí¼þ·þÎñÆ÷ÒªºÃ¡£×öÎ ......

¡¾·Ü¶·µÚÎåÌì¡¿²ËÄñѧJavaÖ®ÎÒÒ²ÓñȽÏÆ÷

ѧÁ˼¯ºÏÀ࣬ÏëÓÃJavaµÄ¼¯ºÏÀà±àÒ»¸öͨѶ¼£¬¿ÉÊÇ·¢ÏÖÌâÄ¿Òª¶ÔͨѶ¼ÖеÄÐÕÃûºÍ±àºÅ½øÐÐÅÅÐò¡£
²ËÄñ¸Õ¸ÕѧJava£¬±¾À´»¹Õæ²»ÖªµÀÓбȽÏÆ÷£¬ºÙºÙ£¬ÒÔΪJavaÊÇÈç´ËÇ¿´ó£¬¿ÉÒÔÖ±½Óµ÷ÓÃSort()·½·¨¾Í¿ÉÒÔ¶Ô¼¯ºÏÀàÖеĶÔÏó½øÐÐÅÅÐò£¬ºÙºÙ£¬ÓÚÊDZãÊÔÁËһϣ¬Ì«²»ºÃʹÁËѽ£¬ºÙºÙ£¬ÓÚÊÇÎÒ¿´ÁË¿´Ê飬µ½ÍøÉϲéÁ˲飬ԭÀ´ÒªÊµÏֱȽÏÆ÷µÄ ......

java³£ÓÃÉè¼Æģʽ


µ¥Àýģʽ.
¼ò¶øÑÔÖ®£¬¾ÍÊÇÒ»¸öÀàÖ»ÓÐÒ»¸öʵÀý¡£
Singleton.java£º
package com.xfimti.sigleton;
public class Singleton
{
 /*µÚÒ»ÖÖ·½Ê½¡£*/
 private static Singleton singleton = new Singleton();
 /*µÚ¶þÖÖ·½Ê½¡£*/
 private static Singleton mySingleton = null;
 
 p ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ