JavaÖеķºÐÍ
1¡¢Java.utilµÄ¼¯ºÏÀàÖеÄÔªËرØÐëÊǶÔÏ󻯵ģ¬ËûÃDz»ÄÜÊÇ»ù±¾ÀàÐÍ¡£Èç²»ÄÜÉùÃ÷Set<char>»òList<int>¡£µ«¶ÔList<Integer>£¬¿ÉÒÔÍùÀïÃæ¼ÓintÐÍÊý¾Ý£¬Ëü»áÓÃJavaµÄautoboxing»úÖÆ×Ô¶¯×ª»»³ÉInteger¶ÔÏó¡£
2¡¢²ÎÊý»¯ÀàÖеÄÀàÐͲÎÊý¿ÉÒÔÊÇÊý×éÀàÐÍ£¬ÈçMap<String[],int[]),×¢Òâint[]ÐÍÊÇÒ»¸ö¶ÔÏ󣬶ø²»ÊÇÔʼÀàÐÍ¡£
3¡¢Èç¹û²»ÏëÓ÷ºÐ͹¦ÄÜ£¬¿ÉÒÔͨ¹ý´ø-source1.4±ê¼ÇÀ´±àÒ룻Ҳ¿ÉÒÔÔÚÉùÃ÷µÄÓò»ò·½·¨Ç°ÓÃ@SuppressWarings("unchecked")±ê×¢À´ºöÂÔ¡£
4¡¢Ò»¸öList<Integer>ÊÇÒ»¸öCollection<Integer>£¬µ«²»ÊÇÒ»¸öList<Object>£¬·ñÔòList<Integer>¿ÉÒÔת»»³ÉList<Object>,ÄÇôת»»ºóʲôÀàÐ͵ÄÊý¾Ý¶¼¿ÉÒÔ¼Ó½øÈ¥£¬Ã»Óдﵽ±àÒëÆÚÀàÐÍ°²È«µÄÄ¿µÄ¡£¼´£ºÀà¿ÉÒÔÉÏתÐÍ£¬ÀàÐͲÎÊý²»ÄÜÉÏתÐÍ¡£
5¡¢JavaÖÐÒýÈë·ºÐ͵ı¾ÖÊ£ºÎªÁËÌṩ±àÒëÆÚµÄÀàÐÍ°²È«¼ì²é£¬ÒÔÃâÀàÐͲ»°²È«µÄbug³öÏÖÔÚÔËÐÐÆÚ¡££¨×¢ÒâÕâÓëC++¼°C#ÖзºÐ͵ÄÄ¿µÄ²»Í¬£©
6¡¢Ò»¸öList<T>ÉÏתÐͳÉListÊǺϷ¨µÄ£¬ÕâÊÇΪÁËÏòºó¼æÈÝ£¬µ«²»ÍƼöÕâÑù×ö¡£ÒòΪÉÏתÐͺó¿ÉÒÔÌí¼ÓÈÎÒâÀàÐ͵ÄÔªËØ£¬»áÔÚºóÃæÒýÈëbug¡£
×¢Ò⣺ÉÏתÐÍÊDZàÒëÆÚÐÐΪ£¬ÔÚÔËÐÐʱÔËÐеĻ¹ÊÇδתÐÍÇ°µÄÄǸöÀàÐÍ
7¡¢²»ÄÜ´´½¨²ÎÊý»¯ÀàÐ͵ÄÊý×é¡£ÈçList<String>[] wordlists=new ArrayList<String>[10]£»±àÒëͨ²»¹ý¡£±àÒëÆ÷ΪʲôҪÕâÑù×öÄØ£¿ÈçÏ£º
List<String>[] wordlists=new ArrayList<String>[10]; //Èô¿ÉÒÔ´´½¨Êý×飬¼ÌÐøÍùÏÂÖ´ÐÐ
ArrayList<Integer> ali=new ArrayList<Integer>();
ali.add(123); //autoboxing
Object[] objs=wordlists; //ÊÇÉÏתÐÍ£¬±àÒëͨ¹ý¡£±àÒëʱobjs¸÷ÔªËØÊÇObjectÀàÐÍ£¬
//ÔËÐÐʱobjs¸÷ÔªËØÊÇArrayList<String>ÀàÐÍ
objs[0]=ali; //ÊÇÉÏתÐÍ£¬±àÒëͨ¹ý¡£±àÒëʱobjs[0]ÊÇObjectÀàÐÍ£¬
//ÔËÐÐʱÊÇArrayList<Integer>ÀàÐÍ£¬ÓëÉÏÃæµÄArrayList<String>ì¶Ü,µ«ÔËÐÐ
//ʱÈÔÎÞ´í£¬ÒòΪ¶ÔString»¹ÊÇIntegerµÄ¼ì²éÔÚ±àÒëÆÚÍê³É£¬ÔËÐÐÆÚ²¢²»ÖªµÀ
String s=wordlists[0].get(0); //ÔËÐÐʱwordlists[0](==objs[0])ÊÇ
Ïà¹ØÎĵµ£º
Observer
Intent
Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
How to
Subject
knows its observers. Any number of Observer objects may observe a subject.
provides an in ......
JXLµÄ´òÓ¡ÉèÖÃÔÚjxl.SheetSettingsÕâ¸öÀàÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ý·½·¨Sheet£¨»òÕßWritableSheet£©#getSettings()»ñÈ¡¡£
1.Ò³Ãæ
1.1·½Ïò
SheetSetting#setOrientation(PageOrientation po)£»
²ÎÊý£º PageOrientation#LANDSCAPE ºáÏò´òÓ¡
PageOrientation# PO ......
1¡¢Óï·¨£º±ØÐë±È½ÏÊìϤ£¬ÔÚд´úÂëµÄʱºòIDEµÄ±à¼Æ÷¶ÔijһÐб¨´íÓ¦¸ÃÄܹ»¸ù¾Ý±¨´íÐÅÏ¢ÖªµÀÊÇʲôÑùµÄÓï·¨´íÎó²¢ÇÒÖªµÀÈκÎÐÞÕý¡£
2¡¢ÃüÁ±ØÐëÊìϤJDK´øµÄһЩ³£ÓÃÃüÁî¼°Æä³£ÓÃÑ¡ÏÃüÁîÖÁÉÙÐèÒªÊìϤ£ºappletviewer¡¢ HtmlConverter¡¢jar¡¢ java¡¢javac¡¢javadoc¡¢javap¡¢javaw¡¢ ......
ÊÖÉÏÒ»¸öÏîÄ¿ÐèҪͨ¹ýusb¿ÚÈ¥¶ÁÈ¡usbkeyµÄÐÅÏ¢£¬³§¼ÒÌṩµÄÖ»ÓÐC/C++µÄ½Ó¿Ú£¬¶øÖ÷Ó¦ÓÃÊÇjavaµÄ£¬ËùÒÔÐèҪʹÓÃjavaÈ¥µ÷Óö¯Ì¬Á´½Ó¿â£¬ËùÒÔ»¨Á˵ãʱ¼äÑо¿ÁËÏÂJNI¼¼Êõ£¬jdk¶ÔJNI¼¼Êõ·â×°µÃºÜµ½Î»£¬Ê¹ÓÃÆðÀ´·Ç³£¼òµ¥£¬JNI¼¼Êõ×î¹Ø¼ü»¹ÊÇÔÚÓÚjniÊý¾ÝÀàÐͺͱ¾µØÊý¾ÝÀàÐ͵Äת»»¡£Ïȼòµ¥ÂÞÁÐÏÂJNIµ ......