Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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³ÌÐòÔ±ÃæÊԱر¸µÄ32¸öÒªµã

ºÜ¾­µäµÄ¶«Î÷,±»×ªµÄµ½´¦¶¼ÊÇ, ÏÈдԭÎÄ:
µÚÒ»£¬Ì¸Ì¸final, finally, finalizeµÄÇø±ð¡£
¡¡final ÓÃÓÚÉùÃ÷ÊôÐÔ£¬·½·¨ºÍÀ࣬·Ö±ð±íʾÊôÐÔ²»¿É±ä£¬·½·¨²»¿É¸²¸Ç£¬À಻¿É¼Ì³Ð¡£finallyÊÇÒì³£´¦ÀíÓï¾ä½á¹¹µÄÒ»²¿·Ö£¬±íʾ×ÜÊÇÖ´ÐС£finalizeÊÇ ObjectÀàµÄÒ»¸ö·½·¨£¬ÔÚÀ¬»øÊÕ¼¯Æ÷Ö´ÐеÄʱºò»áµ÷Óñ»»ØÊÕ¶ÔÏóµÄ´Ë·½·¨£¬¿ÉÒÔ¸²¸Ç ......

JAVA¶¨Ê±Æ÷ Timer+TimerTask

     ±¾ÎÄÊ×ÏÈÉè¼ÆÒ»¸öµ¥´Î¶¨Ê±Æ÷Timer+TimerTask£¬È»ºóÔٴλù´¡ÉÏÉè¼ÆÒ»¸öÑ­»·¶¨Ê±Æ÷¡£
     ÎÒ½«°Ñ java.util.Timer ºÍ java.util.TimerTask ͳ³ÆΪ Java ¼ÆʱÆ÷¿ò¼Ü£¬ËüÃÇʹ³ÌÐòÔ±¿ÉÒÔºÜÈÝÒ׵ؼƻ®¼òµ¥µÄÈÎÎñ£¨×¢ÒâÕâЩÀàÒ²¿ÉÓÃÓÚ J2ME ÖУ©¡£²»¹ý£¬Java ¼ÆʱÆ÷¿ò¼ÜûÓÐ× ......

javaµÄһЩ³£Óðü

commons-digester.jar
Digester»ùÓÚ¹æÔòµÄXMLÎĵµ½âÎö,Ö÷ÒªÓÃÓÚXMLµ½Java¶ÔÏóµÄÓ³Éä.
commons-beanutils.jar
Ìṩ¶ÔJava ·´ÉäºÍ×ÔÊ¡APIµÄ°ü×°.
aspectjweaver.jar
ÓÃÓÚÔÚSpring 2.0Öм¯³ÉAspectJ AspectJ LTWÖ¯ÈëÆ÷
ognl.jar
OGNLÊÇObject-Graph Navigation LanguageµÄËõд£¬ËüÊÇÒ»ÖÖ¹¦ÄÜÇ¿´óµÄ±í´ïʽÓïÑÔ£¨E ......

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 ......

ʹÓÃeclipseÔËÐÐÔø¾­Ð´¹ýµÄjava´úÂë

½ñÌì°ÑÒÔǰдµÄjava´úÂëÄóöÀ´£¬·¢ÏÖ³öÁ˺öà´íÎó¡£µ÷ÁË°ëÌ죬·¢ÏÖÊÇ°æ±¾µÄÎÊÌ⣬ÓôÃÆ£¡
¿ÉÄÜ֮ǰÎÒд´úÂëµÄʱºòÓõÄÊÇJDK1.5£¬½ñÌì´ÓÍøÉÏÏÂÔØJDK1.6£¬Ã»³É¹¦¡£¾Í²Ý²ÝÏÂÔØÁËJDK1.5,½á¹û×ÜÊÇÌáʾ“could not find the main class. program will exit”¡£ÎҾ͵½
window-¡·preference-¡·java-¡·compiler°Ñµ±Ç°µÄ°æ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ