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

¼¸ÖÖ¶ÁÈ¡ÊôÐÔÎļþµÄJAVAʵÏÖ·½Ê½

 1.ʹÓÃjava.util.PropertiesÀàµÄload()·½·¨
¡¡¡¡
¡¡¡¡Ê¾Àý£º
Java´úÂë
InputStream in = lnew BufferedInputStream(new FileInputStream(name));   
¡¡¡¡Properties p = new Properties();   
¡¡¡¡p.load(in);  
InputStream in = lnew BufferedInputStream(new FileInputStream(name));
¡¡¡¡Properties p = new Properties();
¡¡¡¡p.load(in);
¡¡¡¡
¡¡¡¡2.ʹÓÃjava.util.ResourceBundleÀàµÄgetBundle()·½·¨¡¡¡¡
¡¡¡¡Ê¾Àý£º
Java´úÂë
ResourceBundle rb = ResourceBundle.getBundle(name, Locale.getDefault());  
ResourceBundle rb = ResourceBundle.getBundle(name, Locale.getDefault());
¡¡¡¡
¡¡¡¡3.ʹÓÃjava.util.PropertyResourceBundleÀàµÄ¹¹Ô캯Êý¡¡¡¡
¡¡¡¡Ê¾Àý£º
Java´úÂë
InputStream in = new BufferedInputStream(new FileInputStream(name));   
¡¡¡¡ResourceBundle rb = new PropertyResourceBundle(in);  
InputStream in = new BufferedInputStream(new FileInputStream(name));
¡¡¡¡ResourceBundle rb = new PropertyResourceBundle(in);
¡¡¡¡
¡¡¡¡4.ʹÓÃclass±äÁ¿µÄgetResourceAsStream()·½·¨¡¡¡¡
¡¡¡¡Ê¾Àý£º
Java´úÂë
InputStream in = JProperties.class.getResourceAsStream(name);   
¡¡¡¡Properties p = new Properties();   
¡¡¡¡p.load(in);  
InputStream in = JProperties.class.getResourceAsStream(name);
¡¡¡¡Properties p = new Properties();
¡¡¡¡p.load(in);
¡¡¡¡
¡¡¡¡5.ʹÓÃclass.getClassLoader()ËùµÃµ½µÄjava.lang.ClassLoaderµÄgetResourceAsStream()·½·¨¡¡¡¡
¡¡¡¡Ê¾Àý£º
Java´úÂë
InputStream in = JProperties.class.getClassLoader().getResourceAsStream(name);   
¡¡¡¡Properties p = new Properties();   
¡¡¡¡p.load(in);  
InputStream in = JProperties.class.getClassLoader().getResourceAsStream(name);
¡¡¡¡Properties p = new Properties();
¡¡¡¡p.load(in);
¡¡¡¡
¡¡¡¡6.ʹÓÃjava.lang.ClassLoad


Ïà¹ØÎĵµ£º

ÈÃÓû§²»±Ø°²×°JREÔËÐÐjava³ÌÐò

1¡¢½«ÏîÄ¿´ò°üºÃ£»
2¡¢½«JREĿѹËõ³ÉJRE.rar,·ÅÔÚµ±Ç°ÏîĿĿ¼Ï£»
2¡¢ÏÂÔØGreenJVM£¬ÆäÖÐÁ½¸öÖ÷ÒªÎļþ(GreenJVM.exeºÍvm.cfg)
3¡¢ÓüÆÊ±¾´ò¿ªvm.cfgÉèÖòÎÊý£¬²ÎÊýºÜ¶à£¬Ö»ÒªÉèÖÃÏÂÃæ¼¸¸ö¾Í¿ÉÒÔÓÃÁË£º
    SET_VM_NAME=jre.rar
    SET_START_JAR_PATH=***.jar   &nbs ......

JavaÓʼþȺ·¢Æ÷

JavaÓʼþȺ·¢Æ÷
 ¹¦ÄÜ˵Ã÷£º
  1¡¢ÅúÁ¿Ñ­»··¢ËÍÓʼþ
  2¡¢·¢ËÍHTMLÎļþ£¬´ý·¢Ë͵ÄÓʼþÒÔhtmµÄ¸ñʽ´æ·Å£¬¿ÉÒÔÊÇÍøÂçÉϵÄhtmÎļþ£¬¿ÉÒÔÊDZ¾µØµÄhtmÎļþ
  3¡¢¿ÉÒÔÖ¸¶¨·¢Ë͸½¼þµÄĿ¼£¬ÏµÍ³»á¼ÓÔØÖ¸¶¨Ä¿Â¼µÄÈ«²¿¸½¼þÒ»Æð·¢ËÍ
  4¡¢·¢ËÍÓʼþÒÔtxtÎļþ±£´æ£¬Ã¿Ðб£´æÒ»¸öÓʼþ ......

12.18 javaÖеÄview£¬ibatis dao

JavaÄÚ²¿À൱³õµÄÉè¼ÆÄ¿µÄÓ¦¸ÃÊÇʵÏÖ¶àÖØ¼Ì³Ð£¬ºóÀ´·¢ÏÖÄÚ²¿À໹´øÀ´ÁËÆäËûºÃ´¦£¬Èç¿ÉÒÔʹÓÃÄÚ²¿Àà°üװһЩº¯Êý£¬ÊµÏÖº¯Êý¼¶±ðµÄȨÏÞ¿ØÖƵȡ£
     JavaÖУ¬LIst.subList()µÈ·½·¨²úÉúµÄÊÇÒ»¸öview£¬¼´²»ÊÇ´«Öµ£¬¶ø½öÊÇÒýÓá£ËƺõÔÚjavaÖгýÁËprimitiveÀ࣬ÆäËûÀà¶¼Ðènew²ÅÄܲúÉúжÔÏó¡£
iBatis DAO¿ò¼ÜÍ ......

JavaÖÐ ObjectµÄ·½·¨


¹¹Ôì·½·¨ÕªÒª
Object()
           
·½·¨ÕªÒª
protected Object clone()
           ´´½¨²¢·µ»Ø´Ë¶ÔÏóµÄÒ»¸ö¸±±¾¡£
boolean equals(Object obj)
       &n ......

java³£¿¼µÄ¼¸¸öÅÅÐò

1.дһ¸öðÅÝÅÅÐòµÄ³ÌÐò¡£
        public class Sort
{
         public static void main(String[] args)
         {
           &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ