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

java ʵÏÖxlsÎļþתxml

package com.dongyang;
/*
 * ¶Áxlsдxml
 */
import java.io.FileOutputStream;
 
import java.io.FileInputStream;  
 
import java.io.InputStream;  
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.output.XMLOutputter;
 
import jxl.Cell;  
 
import jxl.Sheet;  
 
import jxl.Workbook;  
 
public class Excel2xml   
 
{  
 
  public static void main(String[] args)   
 
    {  
      Excel2xml e = new Excel2xml();
      e.ret();
    }  
 
  public void ret(){
     
      jxl.Workbook readwb = null;  
     
      try   
      {  
          //¹¹½¨Workbook¶ÔÏó, Ö»¶ÁWorkbook¶ÔÏó  
          //Ö±½Ó´Ó±¾µØÎļþ´´½¨Workbook  
          InputStream instream = new FileInputStream("E:/123.xls");  
          readwb = Workbook.getWorkbook(instream);  
          //SheetµÄϱêÊÇ´Ó0¿ªÊ¼  
          //»ñÈ¡µÚÒ»ÕÅSheet±í  
          Sheet readsheet = readwb.getSheet(0);  
          //»ñÈ¡Sheet±íÖÐËù°üº¬µÄ×ÜÁÐÊý  
          int rsColumns = readsheet.getColumns();  
         //»ñÈ


Ïà¹ØÎĵµ£º

javaÈëÃÅ

 Javaѧϰ´ÓÈëÃŵ½¾«Í¨ 
Ò»¡¢ JDK (Java Development Kit) 
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......

javaÎļþ²Ù×÷

 1.´´½¨Îļþ¼Ð 
File myFolderPath = new File(%%1); 
try { 
if (!myFolderPath.exists()) { 
     myFolderPath.mkdir(); 


catch (Exception e) { 
System.out.println("н¨Ä¿Â¼²Ù×÷³ö´í"); 
e.printStackTrace();  ......

java HTMLÎļþÎĵµ±à¼­Æ÷ ʹÓà JTextPane

 java HTMLÎļþÎĵµ±à¼­Æ÷ ʹÓà JTextPane 
/* HTMLDocumentEditor.java
* @author: Charles Bell
* @version: May 27, 2002
*/
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.filechooser.*;
im ......

JavaÉú³ÉͼƬÑéÖ¤Âë

 JavaÉú³ÉͼƬÑéÖ¤Âë
import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.awt.*;
import java.awt.image.*;
import java.util.*;
import javax.imageio.*;
/**
 *
 * @author http://www.tot.name
 * @version
 */
public cl ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ