JAVAȺ
×î½ü³ÉÁ¢ÁËÒ»¸öJAVA Ⱥ Ïë¸ú´ó¼ÒÒ»¿é½»Á÷ 41912406 £» ¸Ð¾õºÃ¾Ãû¿´¹ýJAVAÁË £¬¶¼ÓÐЩÉúÊèÁË¡£ÏÖÔÚÔÚÒ»¼Ò»Æ½ðͶ×ʹ«Ë¾¹¤×÷£¬Ëä˵¹¤×÷»·¾³»¹ÐУ¬µ«ÄÚÐÄÀïºÃÏñ²¢²»Ï²»¶Õâ¸ö£¬ÒÔºó»¹ÊÇÕÒ¸öÈí¼þ¹«Ë¾¸ÉΪºÃ¡£ÔÚÕâ¸öÐÐÒµÄܶÔÊÀ½ç¾¼ÃÁËÁ˽âºÜ¶à£¬ÎÒÏëÕâ¶ÔÎÒÒÔºó»áÓаïÖúµÄ£¬ÏÈÔÚÕâ¸É×Å£¬³¤µã֪ʶÓë¾ÑéÒ²²»´í¡£
Ïà¹ØÎĵµ£º
¹Ø¼ü×Ö: javaÖÐjxlµ¼³öÊý¾Ýµ½excelµÄÀý×Ó
ÒªÍùxlsÎļþÀïÃæдÈëÊý¾ÝµÄʱºòÐèҪעÒâµÄÊǵÚһҪн¨Ò»¸öxlsÎļþ
OutputStream os=new FileOutputStream("c:\\excel2.xls" );
ÔÙ½¨ÍêÕâ¸öÎļþµÄʱºòÔÙ½¨Á¢¹¤×÷Îļþ
jxl.write.WritableWorkbook wwb = Workbook.createWorkbook(new File(os));
Èç¹ûÕâ¸öÎļþÒѾ´æÔÚ,ÄÇà ......
JNIÊÇJava Native InterfaceµÄËõд¡£´ÓJava 1.1¿ªÊ¼£¬Java Native Interface (JNI)±ê×¼³ÉΪjavaƽ̨µÄÒ»²¿·Ö£¬ËüÔÊÐíJava´úÂëºÍÆäËûÓïÑÔдµÄ´úÂë½øÐн»»¥¡£JNIÒ»¿ªÊ¼ÊÇΪÁ˱¾µØÒѱàÒëÓïÑÔ£¬ÓÈÆäÊÇCºÍC++¶øÉè¼ÆµÄ£¬µ«ÊÇËü²¢²»·Á°ÄãʹÓÃÆäËûÓïÑÔ£¬Ö»Òªµ÷ÓÃÔ¼¶¨ÊÜÖ§³Ö¾Í¿ÉÒÔÁË¡£
ʹÓÃjava ......
¶ÔÏó³Ö¾Ã»¯£¬Ò²¾ÍÊÇ¿ÉÒÔ°ÑÕâ¸ö¶ÔÏóÓÀÔ¶µÄ±£´æÆðÀ´£¬ÕâÀïµÄ±£´æ²»½öÊǶÔÏó±¾Éí£¬»¹°üÀ¨ËûµÄÊôÐÔºÍËùÒÀÀµµÄÆäËûÀࡣͨ³££¬¶ÔÏó¿ÉÒԳ־û¯µ½Îļþ»òÕßÊÇÊý¾Ý¿âÖС£ÎÒÕâÀïÖ»½éÉÜÈçºÎ½«¶ÔÏó´æ´¢µ½Êý¾Ý¿âÖС£Ç¡ÇÉOracleÊý¾Ý¿âΪÎÒÃÇÌṩÁËÕâÑùµÄ·½±ã¡£
ÔÚOracleÖУ¬ÓÐÒ»ÖÖblogµÄ×Ö¶ÎÀàÐÍ£¬ËüÊÇÓÃÀ´´æ´¢´óÁ¿µÄ¶ ......
ÕâƪÎÄÕ²»ÊǶÔprivate£¬public£¬protected½øÐÐ˵Ã÷£¬Ö»ÒªÑ§¹ýÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼Æ£¬¶ÔÒÔÉÏÈý¸ö¹Ø¼üÔÙÊìϤ²»¹ýÁË¡£ÕâÀïҪ˵µÄÊÇÁíÍâÁ½¸ö¹Ø¼ü×Ö---staticºÍfinal¡£
1. static¹Ø¼ü×Ö
ÔÚÎÒÃÇ´´½¨Ò»¸öÀàµÄʵÀýʱ£¨¶ÔÏ󣩣¬Í¨³£Ê¹ÓÃnew·½·¨£¬ÕâÑùÕâ¸öÀàµÄÊý¾Ý¿Õ¼ä²Å»á±»´´½¨£¬Æä·½·¨²ÅÄܱ»µ÷Óá£
& ......
ÔÚ³ÌÐòÖУ¬Îı¾Îļþ¾³£ÓÃÀ´´æ´¢±ê×¼µÄASCIIÂëÎı¾£¬±ÈÈçÓ¢ÎÄ¡¢¼Ó¼õ³Ë³ýµÈºÅÕâЩÔËËã·ûºÅ¡£Îı¾ÎļþÒ²¿ÉÄÜÓÃÓڴ洢һЩÆäËû·ÇASCII×Ö·û£¬Èç»ùÓÚ
GBKµÄ¼òÌåÖÐÎÄ£¬»ùÓÚBIG5µÄ·±ÌåÖÐÎĵȵȡ£ÔÚ´æ´¢ÕâЩ×Ö·ûʱÐèÒªÕýÈ·Ö¸¶¨ÎļþµÄ±àÂë¸ñʽ£»¶øÔÚ¶ÁÈ¡ÕâЩÎı¾Îļþʱ£¬ÓÐʱºò¾ÍÐèÒª×Ô¶¯Åж¨ÎļþµÄ±àÂë
¸ñʽ¡£
°´ÕÕ¸ø¶¨µÄ×Ö·û¼¯´ ......