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

java ·´Éä

ÏÂÃæ²Î¿¼±ðÈ˵ÄÎÄÕºÍ×Ô¼ºµÄÒ»µã¸Ä¶¯ºÍ×ܽᲢ¼ÓÒÔ×¢ÊÍ
  JAVA·´Éä»úÖÆÖ÷ÒªÌṩÁËÒÔϹ¦ÄÜ£º
      1.ÔÚÔËÐÐʱÅжÏÈÎÒâÒ»¸ö¶ÔÏóËùÊôµÄÀà¡£
      2.ÔÚÔËÐÐʱ¹¹ÔìÈÎÒâÒ»¸öÀàµÄ¶ÔÏó¡£
      3.ÔÚÔËÐÐʱÅжÏÈÎÒâÒ»¸öÀàËù¾ßÓеijÉÔ±±äÁ¿ºÍ·½·¨£¨Í¨¹ý·´ÉäÉõÖÁ¿ÉÒÔµ÷ÓÃprivate·½·¨£©¡£
      4.ÔÚÔËÐÐʱµ÷ÓÃÈÎÒâÒ»¸ö¶ÔÏóµÄ·½·¨£¨*****×¢Ò⣺ǰÌᶼÊÇÔÚÔËÐÐʱ£¬¶ø²»ÊÇÔÚ±àÒëʱ£©¡£
----Ê×ÏÈÐèÒªµÃÒ»¸öclass¶ÔÏ󣬵õ½Class¶ÔÏóÓжàÖÖ·½·¨
  
      1. Class.forName(String classname)¾²Ì¬·½·¨                  classname  ÀàµÄ·¾¶+ÀàÃû 
      2. ÀàÃû.class
      3. ÔËÓÃprimitive wrapper classesµÄTYPEÓï·¨£º »ù±¾ÀàÐÍ°ü×°ÀàµÄTYPE£¬È磺Integer.TYPE    ×¢Ò⣺TYPEµÄʹÓã¬Ö»ÊʺÏÔ­Éú£¨»ù±¾£©Êý¾ÝÀàÐÍ
 ----ÔËÐÐʱÉú³Éinstance
     ÏëÉú³É¶ÔÏóµÄʵÌ壬ÔÚ·´É䶯̬»úÖÆÖÐÓÐÁ½ÖÖ·½·¨£¬Ò»¸öÕë¶ÔÎÞ±äÁ¿µÄ¹¹Ôì·½·¨£¬Ò»¸öÕë¶Ô´ø²ÎÊýµÄ
¹¹Ôì·½·¨£¬Èç¹ûÏëµ÷Óôø²ÎÊýµÄ¹¹Ôì·½·¨£¬¾Í±È½ÏµÄÂé·³£¬²»ÄÜÖ±½Óµ÷ÓÃClassÀàÖеÄnewInstance£¨£©
£¬¶øÊǵ÷ÓÃConstructorÀàÖÐnewInstance£¨£©·½·¨£¬Ê×ÏÈ×¼±¸Ò»¸öClass[]×÷ΪConstructorµÄ²ÎÊýÀàÐÍ¡£
È»ºóµ÷ÓøÃClass¶ÔÏóµÄgetConstructor£¨£©·½·¨»ñµÃÒ»¸öרÊôµÄConstructorµÄ¶ÔÏó£¬×îºóÔÙ×¼±¸Ò»¸ö
Object[]×÷ΪConstructor¶ÔÏóµÄnewInstance£¨£©·½·¨µÄʵ²Î¡£
      ÔÚÕâÀïÐèҪ˵Ã÷µÄÊÇ Ö»ÓÐÁ½¸öÀàÓµÓÐnewInstance£¨£©·½·¨£¬·Ö±ðÊÇClassÀàºÍConstructorÀà
ClassÀàÖеÄnewInstance£¨£©·½·¨ÊDz»´ø²ÎÊýµÄ£¬¶øConstructroÀàÖеÄnewInstance£¨£©·½·¨ÊÇ´ø²ÎÊýµÄ
ÐèÒªÌṩ±ØÒªµÄ²ÎÊý¡£
    Àý:
      Class u=User.class;                                      &nbs


Ïà¹ØÎĵµ£º

JAVA ±àÒëÕÒ²»µ½·ûºÅ

ͨ³£Çé¿öÏ£¬ÎÒÃÇÔÚ±àдjavaÎļþʱ£¬»áÓÐÒýÓõ½×ÔÒѶ¨ÒåµÄһЩÀ࣬Èç¹û°´Í¨³£µÄjavac *.javaµÄÐÎʽÀ´±àÒë»á³öÏÖÕÒ²»µ½·ûºÅµÄ´íÎó¡£
ÒÔÏÂÌṩÁËÁ½ÖÖ·½·¨£¬ÒÔ¹©²Î¿¼
¼ÙÈçÔÚd:\web\wshÏÂÓÐa.javaºÍb.javaÁ½¸öÎļþ£¬ÔÚb.javaÎļþÖÐÓÐÒýÓÃÁËa.java¡£ÏÂÃæÊDZàÒëµÄ·½·¨
·½·¨Ò»:
½øÈëd:\web\wshÏ£º javac a.java
È»ºóÍ˳öwshÄ ......

java Ïà¶Ô·¾¶

 ×ª×Ô£ºhttp://java.mblogger.cn/sadfasfasd/ 
 ×òÌì¸ãÁ˶¯Ì¬×Ô¶¯¼ÓÔØÅäÖÃÎļþ£¬ÓÖÓöµ½Â·¾¶ÎÊÌ⣬ÕÒµ½ÕâƪºÜ°ôµÄÎÄÕ£¬ÊÕ²Øһϣ¬À´×Ô
http://java.chinaitlab.com/base/532062_3.html  http://www.blogjava.net/killme2008/archive/2007/06/08/122758.html 
      Ç ......

JAVAÈÕÆÚ¸ñʽÎÊÌâ SimpleDateFormat·½·¨

1¡¢±ØÐëÒýÈ룺java.text.SimpleDateFormat
2¡¢ÉèÖÃÏÔʾ·½Ê½£¬µ÷ÓÃformat¸ñʽ¡£
    SimpleDateFormat sdf=new SimpleDateFormat("yyyyÄêMMÔÂddÈÕ");
     String date=sdf.format(blog.getCreatedTime());
    
     sdf=new  Simp ......

java compare ½Ó¿Ú

1.±È½Ïºó£¬·µ»Ø0,1,-1 µÄ½á¹û£¬¿ÉÒÔÓÃ
   return (thisVal<anotherVal ? -1 : (thisVal==anotherVal ? 0 : 1));
ЧÂʸü¸ß
ÒÔÏÂת×Ô http://bluelzx.javaeye.com/blog/200987
1.
Á½ÖֱȽϽӿڷÖÎö
ÔÚ

¼¯ºÏ¿ò¼Ü

ÖÐÓÐÁ½ÖֱȽϽӿڣº
Comparable
½Ó¿ÚºÍ
Comparator
½Ó¿Ú¡£
Compara ......

2010.5.27¼Ç£¨jbpm4.3²¿ÊðÎÊÌâ,javaÖеÄspilt·½·¨£©

ÕÐÉÌÏîÄ¿ÐèÒªÒý½øÒ»¸ö¹¤×÷Á÷£¬×î½üÔÚÍùÉϵ÷ÑпªÔ´µÄ¹¤×÷Á÷ÒýÇ棬×ܽá±È½ÏÁ÷ÐÐÒ»¹²ÓÐ3¸ö¡£
ÆäÖÐÒ»¸öÊÇosworkflow£¬µ«ÊÇÓÉÓںܳ¤Ê±¼ä²»ÔÙ¸üУ¬ËùÒÔÑ¡Ôñ·ÅÆú¡£ÁíÍâÒ»¸ö¾ÍÊÇjbmp4.3£¬¿ªÁ˺ܶàµÄ×ÊÁÏ»¹ÓÐÊÓƵ£¬·¢ÏÖÆäÖкܶණÎ÷Àí½âÀ§ÄÑ£¬»¹ÓÐÒ»¸öÎÊÌâ¾ÍÊÇËüµÄ³Ö¾Ã²ãÊÇhibernate×öµÄ£¬±¾ÏëÏÈÇ°ÏëÓÃibatisµÄ¡£¹À¼ÆÒªÊÇÕæµÄÒý½ø¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ