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

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])ÊÇ


Ïà¹ØÎĵµ£º

javaµ÷ÓÃdllÀý×Ó


×î¼Ñ´ð°¸
1. ±àд·¶ÀýÎĵµ
public class TestNative
{
private native static int Max(int a,int b);
public static void main(String[] args)
{
System.out.println(Max(4,5));
}
static
{
System.loadLibrary("VCdll");
}
}
ÆäÖÐ
LoadLibraryÖеÄDLLÎļþÃû³Æ¿ÉÒÔ ......

ʹÓÃJAVAͨ¹ýJXL(JExcel)¶¯Ì¬Éú³ÉExcelÎļþ


 
ÉÏ´Î談過ÁËʹÓÃiText產ÉúPDF檔£¬這´Î換³É來談談ʹÓÃJExcel來產ÉúEXCEL檔µÄ·½·¨¡£
Ê×ÏÈ£¬Ïȵ½ËûµÄSourceForgeÖ÷頁ÃædownloadÏà關µÄAPI檔°¸¡£
http://sourceforge.net/projects/jexcelapi/
»ò
http://www.andykhan ......

java ½âÎö officeϵÁÐÎĵµ

²Î¿¼:
¡¡¡¡http://danadler.com/jacob/
¡¡¡¡http://jakarta.apache.org/poi/
¡¡¡¡http://www.onjava.com/pub/a/onjava/2003/01/22/poi.html
¡¡¡¡http://www.csdn.net/develop/article/15/15311.shtm
¡¡¡¡http://forum.java.sun.com/thread.jsp?forum=40&thread=382666&tstart=0&trange=15
¡¡¡¡Java Excel ......

ѧϰJavaÀàµÄÊôÐÔ

ѧϰJavaÀàµÄÊôÐÔ-Î人±±´óÇàÄñ
¡¡¡¡Public¡¢private¡¢protectedÏÔʾÁËÈýÖÖÀàÖеÄÊôÐԺͷþÎñµÄÀàÐÍ£¬publicÊÇ¿ÉÒÔËæÒâ·ÃÎʵġ¢privateÊÇÍâ½ç²»ÄÜ·ÃÎʵÄ(ÏÔʾÁËÊý¾ÝµÄ·â×°ÐÔ)¡¢protected˵Ã÷Êý¾ÝÊÇÊܱ£»¤µÄ¡£ÏÂÃæ¾ÍÀ´Ïêϸ½²ÊöÒ»ÏÂÕâÈý¸ö¾¿¾¹ÓÐʲôÇø±ð¡£
¡¡¡¡Ê×ÏÈÒªÁ˽âһϰüµÄ¸ÅÄî¡£ÓÐÈô¸É¸öÀ࣬ËüÃÇÏ໥֮¼äÓÐÒ»¶¨µÄ¹ØÏ ......

Java Reflection (JAVA·´Éä)

Reflection ÊÇ Java ³ÌÐò¿ª·¢ÓïÑÔµÄÌØÕ÷Ö®Ò»£¬ËüÔÊÐíÔËÐÐÖÐµÄ Java ³ÌÐò¶Ô×ÔÉí½øÐмì²é£¬»òÕß˵“×ÔÉ󔣬²¢ÄÜÖ±½Ó²Ù×÷³ÌÐòµÄÄÚ²¿ÊôÐÔ¡£ÀýÈ磬ʹÓÃËüÄÜ»ñµÃ Java ÀàÖи÷³ÉÔ±µÄÃû³Æ²¢ÏÔʾ³öÀ´¡£
Java µÄÕâÒ»ÄÜÁ¦ÔÚʵ¼ÊÓ¦ÓÃÖÐÒ²ÐíÓõò»ÊǺܶ࣬µ«ÊÇÔÚÆäËüµÄ³ÌÐòÉè¼ÆÓïÑÔÖиù±¾¾Í²»´æÔÚÕâÒ»ÌØÐÔ¡£ÀýÈ磬Pascal¡¢C ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ