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

JavaÃÕÌâ6——¿âÃÕÌâ


 
ÃÕÌâ56£º´óÎÊÌâ | ÃÕÌâ57£ºÃû×ÖÀïÓÐʲô£¿ | ÃÕÌâ58£º²úÉúËüµÄÉ¢ÁÐÂë | ÃÕÌâ59£ºÊ²Ã´ÊDz | ÃÕÌâ60£ºÒ»Ðеķ½·¨ | ÃÕÌâ61£ºÈÕÆÚÓÎÏ· | ÃÕÌâ62£ºÃû×ÖÓÎÏ· | 
ÃÕÌâ63£º¸ü¶àͬÑùµÄÎÊÌâ | ÃÕÌâ64£º°´ÓàÊý±à×é | ÃÕÌâ65£ºÒ»ÖÖÒÉËÆÅÅÐòµÄ¾ªÈË´«Ææ
    ͨ¹ýÉÏÃæµÄÁ´½Ó´ó¼Ò¿ÉÒÔÔÚÉÏÃæµÄµÄΪÍøÕ¾ÉÏ¿´µ½¡¶Java Puzzlers¡·µÄÏêϸÎÄÕ£¬Ôڴ˽ö½«Ñ§Ï°µÄÖصã×öÏÂ×ܽ᣺
¹ØÓڿ⣺
ÃÕÌâ56
½âÊÍ£ºBigIntegerʵÀýÊDz»¿É±äµÄ¡£String¡¢BigDecimalÒÔ¼°°ü×°Æ÷ÀàÐÍ£ºInteger¡¢Long¡¢Short¡¢Byte¡¢Character¡¢Boolean¡¢FloatºÍDoubleÒ²ÊÇÈç´Ë£¬
      Äã²»ÄÜÐÞ¸ÄËüÃǵÄÖµ¡£ÎÒÃDz»ÄÜÐÞ¸ÄÏÖÓÐʵÀýµÄÖµ£¬¶ÔÕâЩÀàÐ͵IJÙ×÷½«·µ»ØеÄʵÀý¡£ÎªÁËÔÚÒ»¸ö°üº¬¶Ô²»¿É±ä¶ÔÏóÒýÓõıäÁ¿ÉÏÖ´ÐмÆË㣬ÎÒÃÇ
      ÐèÒª½«¼ÆËãµÄ½á¹û¸³Öµ¸ø¸Ã±äÁ¿¡£
      ·½·¨ÈçÏ£º BigInteger fiveThousand = new BigInteger("5000");
½Ìѵ£º²»Òª±»Îóµ¼£¬ÈÏΪ²»¿É±äÀàÐÍÊǿɱäµÄ¡£ÕâÊÇÒ»¸öÔÚ¸ÕÈëÃŵÄJava³ÌÐòÔ±Öкܳ£¼ûµÄ´íÎó¡£¹«ÕýµØ˵£¬
Java²»¿É±äÀàÐ͵ÄijЩ·½·¨Ãû´ÙʹÎÒÃÇ×ßÉÏÁËÆç;¡£Ïñadd¡¢subtractºÍnegateÖ®ÀàµÄÃû×ÖËƺõÊÇÔÚ°µ
ʾÕâЩ·½·¨½«ÐÞ¸ÄËüÃÇËùµ÷ÓõÄʵÀý¡£Ò²Ðíplus¡¢minusºÍnegation²ÅÊǸüºÃµÄÃû×Ö¡£
ÃÕÌâ57
½âÊÍ£º Ê¹ÓÃset·½·¨Ê±£¬×¢Ò⣬Èç¹û¶¨ÒåµÄÀาдÁËequals()·½·¨Ê±£¬¾ÍÒ»¶¨Òª¸²Ð´hashcode()·½·¨£¬ÒòΪÿ´Î
  ʹÓÃset´æ´¢ÊµÀý»òÊǵ÷Ó㬶¼ÐèÒªhashcode·½·¨±È½ÏÊý¾Ý¡£
½Ìѵ£ºµ±Ä㸲дequals·½·¨Ê±£¬Ò»¶¨Òª¼Çן²Ð´hashCode·½·¨¡£¸üÒ»°ãµØ½²£¬µ±ÄãÔÚ¸²Ð´Ò»¸ö·½·¨Ê±£¬Èç¹ûËü¾ß
ÓÐÒ»¸öͨÓõÄÔ¼¶¨£¬ÄÇôÄãÒ»¶¨Òª×ñÊØËü¡£¶ÔÓÚ´ó¶àÊýÔÚObjectÖÐÉùÃ÷µÄ·ÇfinalµÄ·½·¨£¬¶¼ÐèҪעÒâÕâÒ»
µã[EJ Chapter 3]¡£²»²ÉÓÃÕâÏÒé¾Í»áµ¼ÖÂÈÎÒâµÄ¡¢²»È·¶¨µÄÐÐΪ¡£
ÃÕÌâ58
 ½âÊÍ£ºÕâ¸ö³ÌÐòµÄȱÏÝÓëÃÕÌâ57ÖеÄȱÏݺÜÏàËÆ£¬ÔÚÃÕÌâ57ÖУ¬Name¸²Ð´ÁËequals·½·¨£¬µ«ÊÇûÓи²Ð´hashCode·½·¨£»¶øÔÚ±¾ÃÕÌâÖУ¬Name¸²Ð´ÁËhashCode·½
       ·¨£¬µ«ÊÇûÓи²Ð´equals·½·¨¡£Õâ²¢²»ÊÇ˵NameûÓÐÉùÃ÷Ò»¸öequals·½·¨£¬ËüȷʵÉùÃ÷ÁË£¬µ«ÊÇÄÇÊǸö´íÎóµÄÉùÃ÷¡£NameÀàÉùÃ÷ÁËÒ»¸ö²ÎÊýÀàÐÍÊÇName
 &n


Ïà¹ØÎĵµ£º

Java Web µÚ10Ìì ELºÍJSTL 1

Ò»¡¢
ʲôÊÇ
EL
£¿ÎªÊ²Ã´ÒªÊ¹ÓÃ
EL
£¿
EL
£¬¼´
JSP
±í´ïʽÓïÑÔ£¨
expression_r_r Language
£©£¬ËüÔÊÐíÎÒÃÇʹÓøü¼ò½à¡¢¸üÒ׶Á¶®µÄÓï·¨À´È¡´úÄÑÒÔά»¤µÄ
Java
½Å±¾ÒÔ¼°±¿×¾µÄ
jsp:userBean,jsp:getProperty
£¬ËûÈÃÔÚ
JSP
ÖÐÍêÈ«Ïû³ýÁË
Java
´úÂë¡£
EL
µÄʹÓÃÄܹ»ÈÃ
JSP
Ò³Ãæ¸üÓпɶÁÐÔ£¬Êä³öµÄǶÌ×µÄ ......

Lucene£º»ùÓÚJavaµÄÈ«ÎļìË÷ÒýÇæ¼ò½é


LuceneÊÇÒ»¸ö»ùÓÚJavaµÄÈ«ÎÄË÷Òý¹¤¾ß°ü¡£
»ùÓÚJavaµÄÈ«ÎÄË÷ÒýÒýÇæLucene¼ò½é£º¹ØÓÚ×÷ÕߺÍLuceneµÄÀúÊ·
È«ÎļìË÷µÄʵÏÖ£ºLueneÈ«ÎÄË÷ÒýºÍÊý¾Ý¿âË÷ÒýµÄ±È½Ï
ÖÐÎÄÇзִʻúÖƼò½é£º»ùÓÚ´Ê¿âºÍ×Ô¶¯ÇзִÊËã·¨µÄ±È½Ï
¾ßÌåµÄ°²×°ºÍʹÓüò½é£ºÏµÍ³½á¹¹½éÉܺÍÑÝʾ
Hacking Lucene£º¼ò»¯µÄ²éѯ·ÖÎöÆ÷£¬É¾³ýµÄʵÏÖ£¬¶¨ÖƵÄÅ ......

java ÖÐµÄ for foreach whileÑ­»·µÄ±È½Ï

java for foreach whileÑ­»·µÄ±È½Ï
¹Ø¼ü×Ö: java
ÔÚjavaÖо¿¾¹ÊÇÒ»°ãµÄforÑ­»·£¬»¹ÊÇforµÄÔöÇ¿ÐÍforeach£¬»òÊÇwhileµÄÖ´ÐÐЧÂʱȽϿìÄØ,ÎÒÓÃÁËÒ»¸ö¼òµ¥µÄ³ÌÐòÀ´·ÖÎö3ÖÖÑ­»·
public static void main(String[] args) {
 
List<Integer> map = new ArrayList<Integer>();
for (int i = 0; i < ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ