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

Effective Java ѧϰ±Ê¼Ç (11)

CloneÕâ¸ö·½·¨ºÜ¼¦Àߣ¬Ô­ÒòÊÇÒòΪËüÊÇÊܱ£»¤µÄ(protected)£¬Æä¶þCloneÕâ¸ö·½·¨ÊÇ¿ÉÑ¡µÄ£¬¼´ÓпÉÄÜÀàûÓÐÌṩÕâ¸ö·½·¨¡£
cloneûÓе÷Óù¹Ô캯Êý£¬¶øÇÒÈç¹û¸¸ÀàûÓÐʵÏÖcloneµÄ»°£¬×ÓÀàÓÀÔ¶Ò²²»¿ÉÄÜÕýȷʵÏÖclone.
×ÜÖ®£¬cloneÊǸöºÜÍ·Í´µÄº¯Êý£¬Èç¹ûÒªÕýȷʵÏÖ£¬±ØÐ뿼Âǵ½É±´µÄÇé¿ö£¬·ñÔò±»¿Ë¡³öÀ´µÄ¶ÔÏó¾Í²»ÊǶÀÁ¢µÄ£¬È磬Ҫдһ¸ö¶ÑÕ»ÀàµÄ¿Ë¡º¯Êý£¬ÕýÈ·µÄʵÏÖ·½·¨ÊÇ£º
@Override public Stack clone() {
            try {
                        Stack result = (Stack) super.clone();
                        result.elements = elements.clone();
                        return result;
            } catch (CloneNotSupportedException e) {
                        throw new AssertionError();
            }
}
ҪעÒâ¶ÔÓÚfinal×ֶβ»ÄÜÕý³£¹¤×÷£¬clone½á¹¹Óë¿É±ä¶ÔÏóµÄfinal×Ö¶ÎÊDz»¼æÈݵġ£
¶ÔÓÚÁÐÉ¢Êý×飬½ö½öµÝ¹éµ÷ÓõÄclone·½·¨»¹²»¹»£¬¿´ÊéÖÐÕýÈ·µÄ×ö·¨£º
public class HashTable implements Cloneable {
            private Entry[] buckets = ...;
            private static class Entry {
                        final Object key;
                     


Ïà¹ØÎĵµ£º

JavaÎı¾ÓïÒôת»»×é¼þJTTS·¢²¼£¨eSpeak·â×°£©

ÏÂÔصØÖ·£ºhttp://greenvm.googlecode.com/files/JTTSEngine.7z
£¨º¬Ê¾ÀýÓëÔ´Â룬Ŀǰ½öÌṩdll·â×°£©
ÖÚËùÖÜÖª£¬ËùνTTS¼´Text To SpeechµÄÓ¢ÎÄËõд£¬Ò²¾ÍÊÇ“´ÓÎı¾×ª»»µ½ÓïÒô”¡£
TTS¼¼ÊõµÄÖ÷Òª×÷ÓÃÔÚÓÚÀûÓüÆËã»úºÏ³ÉÈËÓ²¢½«ÎÄ×ÖÐÅϢת»¯ÎªÓïÒôÐÅÏ¢½øÐв¥·Å¡£¼òµ¥µã˵£¬TTS¼¼Êõ¸³ÓèÁ˼ÆËã»ú“¿ª¿Ú ......

JAVA½Ì³Ì SwingÓû§½çÃæÉè¼ÆÈëÃÅ

7£®1 Swing¼ò½é
7.1.1 ¼ò½é
¡¡¡¡µÚÎå½²ÖÐÎÒÃÇѧϰÁËAWT£¬AWTÊÇSwingµÄ»ù´¡¡£SwingµÄ²úÉúÖ÷ÒªÔ­Òò¾ÍÊÇAWT²»ÄÜÂú×ãͼÐλ¯Óû§½çÃæ·¢Õ¹µÄÐèÒª¡£
AWTÉè¼ÆµÄ³õÖÔÊÇÖ§³Ö¿ª·¢Ð¡Ó¦ÓóÌÐòµÄ¼òµ¥Óû§½çÃæ¡£ÀýÈçAWTȱÉÙ¼ôÌù°å¡¢´òÓ¡Ö§³Ö¡¢¼üÅ̵¼º½µÈÌØÐÔ£¬¶øÇÒÔ­À´µÄAWTÉõÖÁ²»°üÀ¨µ¯³öʽ²Ëµ¥»ò¹ö¶¯´°¸ñµÈ»ù±¾ÔªËØ¡£
¡¡¡¡´ËÍâAWT»¹´ ......

Java Web µÚ9Ìì jsp 2

5.      

JSP
±ê×¼¶¯×÷¡¢
JSP
Ö¸ÁîÓÃÓÚÒ³ÃæÓëÈÝÆ÷¼äµÄͨÐÅ£¬¶ø
JSP
±ê×¼¶¯×÷ÓÃÓÚÒ³ÃæÓëÒ³Ãæ»òÕßÒ³ÃæÓë×é¼þ¼äµÄͨÐÅ¡£È磺
<jsp:include
page=”localURL” flush=”true”>
 
6.      

JSP
Òþʽ¶ÔÏó
ÔÚ
......

OpenJWeb Java¼¼ÊõÃÅ»§ÍøÔËÓª¹«¸æ

OpenJWeb Java¼¼ÊõÃÅ»§ÍøµØַΪhttp://www.openjweb.com:8088/crm ,´ËÍøÕ¾ÓÚ2010Äê2ÔÂ16ÈÕÕýʽÆôÓá£
OpenJWeb Java¼¼ÊõÃÅ»§ÍøÖ÷ÒªÌṩJava¼Ü¹¹Ñ§Ï°¡¢Java¿ªÔ´¿ò¼Ü¼¼Êõ½»Á÷¡¢OpenJWeb¼¼Êõ×ÊÁÏÏÂÔØ¡¢Ãâ·Ñ»áÔ±×¢²á¡¢openjweb.comÃâ·ÑÓÊÏä·þÎñ¡¢ÓʼþȺ·¢¡¢¿Í»§µµ°¸¹ÜÀí¡¢ÄÚÈݹÜÀíϵͳµÈ¹¦ÄÜ¡£
OpenJWeb Java¼¼ÊõÃÅ»§Íøµ ......

Effective Java ѧϰ±Ê¼Ç £¨10£©

java.lang.Object ÌṩÁËÒ»¸ötoString()µÄ·½·¨£¬µ«Êµ¼ÊÉÏÕâ¸ö·½·¨·µ»ØµÄÍùÍù²»ÊÇÎÒÃÇÐèÒªµÄ£¬Ëü·µ»ØµÄÊÇÀàÃû¼ÓÉÏ“@”¼ÓÉÏÊ®Áù½øÖƵÄhashÖµ¡£ÕâÏÔÈ»²»ÊÇÎÒÃÇÏëÒªµÄ£¬ËùÒÔ±ØÐëÖØÔØtoStringº¯Êý¡£
ºÜ¼òµ¥µÄÀý×Ó£¬ÈçÏÂ
System.out.println("Failed to connect: " + phoneNumber);
Èç¹û²»ÖØÔØ£¬ÔòÓÐ
Failed to co ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ