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

Java²Ù×÷Excel·½·¨±È½Ï

1. Java¶ÁÈ¡Excel·½Ê½¶Ô±È
ÔÚJavaÖжÁдMS ExcelÎļþÖ÷ÒªÓÐÁ½ÖÖµäÐ͵ķ½·¨
l         Java-To-ComµÄ·½Ê½£º
£¨£±£©   jCom
£¨£²£©   Jacob
l         Ö±½ÓExcelÎļþ¶Áд
£¨£³£©   jExcel
£¨£´£©   POI
·½·¨£±ÖУ¬ÊÇÀûÓÃJava-ComÇŵķ½Ê½À´¶ÁдExcelÎļþ£¬ÐèÒªºǫ́ÓÐCom×é¼þµÄÖ§³Ö£¬²»ÄÜÍÑÀëWindowsƽ̨ʹÓá£
·½·¨£²ÊÇÖ±½ÓʹÓô¿Java API´æÈ¡ExcelÎļþ£¬¿ÉÒÔÖ±½Ó´Ó´ÅÅÌÎļþ»òÕßJavaµÄÊäÈëÊä³öÁ÷ÖжÁдExcelÎļþ¡£Ïà±È֮Ϸ½·¨£²Òª¸üΪֱ½ÓһЩ£¬²»±ØÒÀÀµÓÚWindowsƽ̨ÒÔ¼°Com×é¼þ¡£jExcelÓëPOI¶¼ÊÇ¿ªÔ´µÄJavaÏîÄ¿£¬jExcelÊÇsourceforgeµÄ¿ªÔ´ÏîÄ¿£¨http://jexcelapi.sourceforge.net/£©£¬POIÊÇApacheµÄ¿ªÔ´ÏîÄ¿£¨http://jakarta.apache.org/poi/£©¡£
£²£®POI¹¦ÄܽéÉÜ
POIÊÇApacheÏÂJakataÏîÄ¿µÄ×ÓÏîÄ¿£¬ÆäÄ¿±êÊÇ´¦ÀíOLE2¶ÔÏó¡£Ä¿Ç°±È½Ï³ÉÊìµÄ°üÓÐHSSF£¬Ö÷ÒªÓÃÀ´´¦ÀíMs ExcelÎļþ¡£HWPF°ü£¬ÕýÔÚÍêÉƵ±ÖУ¬Ö÷ÒªÓÃÓÚ´¦ÀíMs WordÎļþ¡£HSLF°ü£¬Ö÷ÒªÓÃÓÚ´¦ÀíMs PowerPointÎĵµ¡£POI×é¼þ³ýÁË¿ÉÒÔ¹©JavaʹÓÃÍ⣬»¹ÌṩÁËRuby½Ó¿Ú£¬¿ÉÒÔÖ±½Ó¹©RubyʹÓá£
POIµÄ²¿·Ö´úÂëÊÇÀ´×ÔÓÚOpenOffice£¬¶ÔÓÚ´¦ÀíExcelÎĵµ¶øÑÔ£¬POIÊÇÄ¿Ç°×î³ÉÊìÓëÎȶ¨µÄJava¿ªÔ´ÏîÄ¿¡£
ÒÔÉϵķ½·¨£¬´óÖ¿´ÁËÒ»ÏÂJExcelºÍHSSF£¬JExcel¾ÍÊÇjxl¡£ÒÔºóÔÙдµã¾ßÌåµÄ
Áí£º
POIµÄ×ÓÏîÄ¿ÓУº
POIFS
¶ÔÓÚMS OfficeÎĵµÎļþ½á¹¹µÄ·ÃÎÊ
HSSF
MS ExcelÊý¾Ý·ÃÎÊ
HWPF
MS WordÊý¾Ý·ÃÎÊ
HPSF
OfficeÎĵµµÄÊôÐÔ·ÃÎÊ
HSLF
PowerPointÊý¾Ý·ÃÎÊ
POI-Ruby
¶Ôgcj±àÒëÀà¿âµÄRuby°ó¶¨
 ¶¼Ã»½Ó´¥¹ý£¬¸Õ¿ªÊ¼½Ó´¥HSSF¡£
ÏÂÃæÊǼ¸ÖÖ·½·¨µÄ¶Ô±È£¬Ö±½Ó¸´ÖÆÕ³Ìûһϣ¬ÒÔºóÂýÂýÑо¿±È½Ï¡£


Ïà¹ØÎĵµ£º

javaÐòÁл¯Serializable

Ä¿Ç°ÍøÂçÉϹØÓÚ¶ÔÏóÐòÁл¯µÄÎÄÕ²»ÉÙ£¬µ«ÊÇÎÒ·¢ÏÖÏêϸÐðÊöÓ÷¨ºÍÔ­ÀíµÄÎÄÕÂÌ«ÉÙ¡£±¾ÈË°Ñ×Ô¼º¾­¹ý¾­Ñé×ܽáºÍʵ¼ÊÔËÓÃÖеÄÌå»áд³ÉµÄѧϰ±Ê¼Ç¹±Ï׸ø´ó¼Ò¡£Ï£ÍûÄÜΪÕû¸öjavaÉçÇøµÄ·±ÈÙ×öÒ»µãÊÂÇé¡£
¡¡¡¡ÐòÁл¯µÄ¹ý³Ì¾ÍÊǶÔÏóдÈë×Ö½ÚÁ÷ºÍ´Ó×Ö½ÚÁ÷ÖжÁÈ¡¶ÔÏó¡£½«¶ÔÏó״̬ת»»³É×Ö½ÚÁ÷Ö®ºó£¬¿ÉÒÔÓÃjava.io°üÖеĸ÷ÖÖ×Ö½ÚÁ÷Àà½«Æ ......

java³£ÓÃÉè¼Æģʽ

Éè¼Æģʽ
Ò»¸ö³ÌÐòÔ±¶ÔÉè¼ÆģʽµÄÀí½â:
“²»¶®”ΪʲôҪ°ÑºÜ¼òµ¥µÄ¶«Î÷¸ãµÃÄÇô¸´ÔÓ¡£ºóÀ´Ëæ×ÅÈí¼þ¿ª·¢¾­ÑéµÄÔö¼Ó²Å¿ªÊ¼Ã÷°×ÎÒËù¿´µ½µÄ“¸´ÔӔǡǡ¾ÍÊÇÉè¼ÆģʽµÄ¾«ËèËùÔÚ£¬ÎÒËùÀí½âµÄ“¼òµ¥”¾ÍÊÇÒ»°ÑÔ¿³×¿ªÒ»°ÑËøµÄģʽ£¬Ä¿µÄ½ö½öÊÇ×ÅÑÛÓÚ½â¾öÏÖÔÚµÄÎÊÌ⣬¶øÉè¼ÆģʽµÄ“¸´ÔÓ&rdq ......

Java Ïà¹ØÄÚÈÝÔÓ¼Ç

1¡¢Eclipse µÄÆô¶¯»­Ãæ
   A¡¢¼ÓÆô¶¯²ÎÊý¡£È磺 eclipse.exe -showsplash C:\splash.bmp
        ¸ü¶à¿É²Î¿¼£ºhttp://www.cnblogs.com/sharewind/archive/2007/03/11/671270.html
   B¡¢ÐÞ¸ÄĬÈÏͼƬ¡£Î»ÓÚ£ºplugins\org.eclipse.platform_3.3.2.R33x_v20071022 ......

Java ÕýÔò±í´ïʽ ×Ö·û´®Æ¥Åä

import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class JavaBasic {
     public static void main(String[] args){
      StringBuffer sd = new StringBuffer();
      String hhhString="adlkll";
    &nbs ......

javaÖйؼü×ÖvolatileµÄ×÷ÓÃ

ÓÃÔÚ¶àỊ̈߳¬Í¬²½±äÁ¿¡£ Ïß³ÌΪÁËÌá¸ßЧÂÊ£¬½«Ä³³ÉÔ±±äÁ¿(ÈçA)¿½±´ÁËÒ»·Ý£¨ÈçB£©£¬Ïß³ÌÖжÔAµÄ·ÃÎÊÆäʵ·ÃÎʵÄÊÇB¡£Ö»ÔÚijЩ¶¯×÷ʱ²Å½øÐÐAºÍBµÄͬ²½¡£Òò´Ë´æÔÚAºÍB²»Ò»ÖµÄÇé¿ö¡£volatile¾ÍÊÇÓÃÀ´±ÜÃâÕâÖÖÇé¿öµÄ¡£volatile¸æËßjvm£¬ ËüËùÐÞÊεıäÁ¿²»±£Áô¿½±´£¬Ö±½Ó·ÃÎÊÖ÷ÄÚ´æÖеģ¨Ò²¾ÍÊÇÉÏÃæ˵µÄA)
===================== ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ