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

ÔÚJavaÖжÔExcel²Ù×÷

´´½¨Ò»¸öÎļþtemp£¬Í¬Ê±ÔÚtemp Ŀ¼Ï´´½¨Ò»¸öoutpath.xls
д²Ù×÷
 
package com;
import java.io.File;
import java.io.IOException;
import java.text.DateFormat;
import jxl.Workbook;
import jxl.format.UnderlineStyle;
import jxl.write.DateTime;
import jxl.write.Label;
import jxl.write.NumberFormat;
import jxl.write.WritableCell;
import jxl.write.WritableCellFormat;
import jxl.write.WritableFont;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import jxl.write.WriteException;
import jxl.write.biff.RowsExceededException;
public class Demo {
//¶¨ÒåÒ»¸ö¾²Ì¬±äÁ¿
   private static String path="d:/temp/";
//²éÕÒÄ¿±êÎļþÊÇ·ñ´æÔÚ
   static void   checkExist(String   path){      
       java.io.File   file   =   new   java.io.File(path);      
       if(file.isDirectory()){      
           System.out.println("the   dir   is   exits");
           file.delete();
       }else{      
           file.mkdirs();      
           System.out.println("made   a   dir   £¡"   );      
       }      
   }   
   public static void main(String args[]) throws IOException, RowsExceededException, WriteException{
    Demo.checkExist(path);
    File tempFile=new File(path+"outpath.xls");
   


Ïà¹ØÎĵµ£º

JAVA¿ª·¢»·¾³ÅäÖÃ˵Ã÷Êé

AVA¿ª·¢»·¾³ÅäÖÃ˵Ã÷Êé
µÚÒ»²½£º°²×°JDK£¬µ÷ÊÔÔËÐÐJAVA³ÌÐò±ØÐë¡£
µÚ¶þ²½£º°²×°¿ª·¢¹¤¾ß£¨ºÜ¶à¿ÉÑ¡£©¡£
µÚ
Èý²½£º°²×°J2EE·þÎñÆ÷Èí¼þ£¨JSP/JDBC/SevletµÈ¼¼Êõ±ØÐ룩¡£
µÚËIJ½£º°²×°J2EE¿ª·¢¹¤¾ß£¨JSP/JDBC/SevletµÈ
¼¼Êõ±ØÐ룩¡£
ÒÔÏÂÊÇÏêϸ¹ý³Ì£º
µÚÒ»²½£º°²×°JDK£¬µ÷ÊÔÔËÐÐJAVA³ÌÐò±ØÐë¡£
JDK1.4ĬÈÏ°²×°ÔÚC:\j2 ......

JavaÓëCͨÐÅҪעÒâµÄ¼¸¸öÎÊÌâ

1.´óβ(big_endian)Сβ(little_endian)µÄÎÊÌâ
»ùÓÚWebµÄ²âÊÔÈí¼þÊÇÓÉC++Êý¾Ý²É¼¯·þÎñÆ÷³ÌÐòºÍ¿Í»§¶ËJavaÏÔʾ³ÌÐòÁ½²¿·Ö¹¹³É£¬Ç°ÕßÓÃC++£¬ºóÕßJavaÓïÑÔ£¬´æÔÚÊý¾ÝÒÆÖ²ÎÊÌâ¡£ÒòΪ
ÔÚ¼ÆËã»úϵͳÖУ¬µ±°üº¬Êý×ֵĶþ½øÖÆÎļþ´ÓÒ»¸ö½á¹¹ÒƵ½ÁíÒ»½á¹¹Ê±£¬¾Í³öÏÖ´óβСβÎÊÌâ¡£²»Í¬CPUÔÚ¶à×Ö½ÚÊý£¨ÈçËÄ×Ö½Úint£©´æ´¢Ê±ÓÐÁ½ÖÖ·½·¨ ......

¹ØÓÚJavaŵÂüµ×µÄÒ»µãСÀúÊ·

   ¹ØÓÚJavaŵÂüµ×µÄÒ»µãСÀúÊ·
 ×î½üºÜ¶àÈËÎÊJavaŵÂüµ×ÊÇʲôÒâ˼£¬×÷ΪJavaŵÂüµ×µÄÒ»ÃûÀÏͬ־£¬ÎÒ¼òµ¥µÄ½éÉÜÏÂJavaŵÂüµ×¡£
 JavaŵÂüµ×³ÉÁ¢ÓÚ2008Äê7ÔÂ29ÈÕ£¬ÔÚÒ»¸öÈȺ¹³¯ÌìµÄÈÕ×ÓÀ¼¸¸öÂú»³Ï£ÍûµÄÓÐÖ¾ÇàÄ꣬×øÔÚÏæ½­ºÓ°ø£¬Ì¸×Å×Ô¼ºÀíÏ룬ÆäÖÐÒ»ÈË˵£¬¼ÙÈçÎÒÃÇÓÐ×Ô¼ºµÄÍŶӸÃÓжàºÃ£¬ÓÚÊ ......

JAVA ³£ÓõÄÕýÔò±í´ïʽ£º


Æ¥ÅäÌض¨Êý×Ö£º
^[1-9]d*$¡¡ ¡¡ //Æ¥ÅäÕýÕûÊý
^-[1-9]d*$ ¡¡ //Æ¥Å为ÕûÊý
^-?[1-9]d*$¡¡¡¡ //Æ¥ÅäÕûÊý
^[1-9]d*|0$¡¡ //Æ¥Åä·Ç¸ºÕûÊý£¨ÕýÕûÊý + 0£©
^-[1-9]d*|0$¡¡¡¡ //Æ¥Åä·ÇÕýÕûÊý£¨¸ºÕûÊý + 0£©
^[1-9]d*.d*|0.d*[1-9]d*$¡¡¡¡ //Æ¥ÅäÕý¸¡µãÊý
^-([1-9]d*.d*|0.d*[1-9]d*)$¡¡ //Æ¥Å为¸¡µãÊý
^-?([1-9]d*.d*| ......

javaÓëc#ͨÐÅÊý¾Ýת»»ÎÊÌâ

/ÓÉÓÚJAVAÓïÑÔµÄÊý¾ÝÀàÐͶ¼ÊÇÓзûºÅÀàÐÍ£¬¶øC# C++Ò»°ãÊý¾ÝÀàÐͶ¼ÊÇ·ÖÓзûºÅºÍÎÞ·ûºÅ,
//Òò´ËÔÚͨÐŹý³ÌÖд«µÝµÄByte[]ÎÞ·¨Ö±
½Óת»»³ÉC#ÐèÒªµÄÀàÐÍ£¬
//ÒÔÇ°µ¹ÊÇûעÒâÕâЩϸ½Ú£¬ÒòΪһ°ãÓÃÒ»ÖÖÓïÑÔ±à³Ì£¬
//´ó¶¼ÓÐÄÚÖõÄת»»·½·¨¡£¿çÓïÑÔ»·¾³µÄת»»¾ÍµÄ×Ô¼º¶¯
ÊÖÏë°ì·¨ÁË¡£
1¡¢javaµÄByte[]ת»»³Éc#µÄInt32
privat ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ