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

ÔËÓÃjava, jCom À´ дexcelÎļþ£¨IDispatch£©·½·¨¶þ

package sample1;
 
import java.io.File;
import jp.ne.so_net.ga2.no_ji.jcom.IDispatch;
import jp.ne.so_net.ga2.no_ji.jcom.JComException;
import jp.ne.so_net.ga2.no_ji.jcom.ReleaseManager;
/**
 * ʹÓÃjComʵÏÖдexcelÎļþµÄÁíÒ»ÖÖ·½Ê½£¨IDispatch£©
 * @author steve_wang_victor
 *
 */
public class Tt {
 
         private static ReleaseManager rm = null;
         private static IDispatch xlsApp = null;
         private static IDispatch excel = null;
         private static IDispatch workbook = null;// ¹¤×÷±¡
         private static IDispatch sheets = null;// ËùÓй¤×÷±í£¨ÊÇÒ»¸öÊý×éÐÎʽ£©
         private static IDispatch sheet = null;// µ¥¸ö¹¤×÷±í
         private static IDispatch currentSheet  = null;// µ±Ç°»î¶¯µÄ¹¤×÷±í
 
         /**
          * @param args
          */
         public static void main(String[] args) {
 
                   rm = new ReleaseManager();// ²éÕÒJCOMÄܹ»²Ù×÷µÄ×é¼þ
                   try {
                            xlsApp = new IDispatch(rm, "Excel.Application");
                           


Ïà¹ØÎĵµ£º

javaÖÐorg.apache.commons.digesterÀàÓ÷¨

xmlÎļþÄÚÈÝ£º
 <?xml version="1.0" encoding="UTF-8"?>
<channels>
<channel switchTime="20080101000101" k="1.07" n="6" s="55" channelId="0404" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0405" channelName="xxx ......

JavaÊý¾Ý¿âÁ¬½Ó³Ø

 
javaÊý¾Ý¿âÁ¬½Ó³Ø

javaÊý¾Ý¿âÁ¬½Ó³Ø

import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Enumeration;
import java.util.Vector;
......

¹¦ÄÜÍêÉƵÄJavaÁ¬½Ó³Øµ÷ÓÃʵÀý


/**
* Title: ConnectPool.java
* Description: Á¬½Ó³Ø¹ÜÀíÆ÷
* Copyright: Copyright (c) 2002/12/25
* Company:
* Author :
* Version 2.0
*/
import java.io.*;
import java.sql.*;
import java.util.*;
import java.util.Date;
/**
* ¹ÜÀíÀàDBConnectionManagerÖ§³Ö¶ÔÒ»¸ö»ò¶à¸öÓÉÊôÐÔÎļ ......

Java±ÊÊÔÌâ

ΪÁËÓ¦¸¶2009Äê11ÔÂ8ºÅ¹ã¶«µçÍøµÄ±ÊÊÔÌâÄ¿£¬ÌصØÕÒµ½Ò»ÆªJava±ÊÊÔÌâÄ¿(http://blog.csdn.net/yexianyi/archive/2009/04/25/4123350.aspx)£¬ÏÖÖØÐÂתÔØʹÓá£
Java±ÊÊÔÌ⼯½õ
1.MVCµÄ¸÷¸ö²¿·Ö¶¼ÓÐÄÇЩ¼¼ÊõÀ´ÊµÏÖ?ÈçºÎʵÏÖ?
´ð£ºMVCÊÇModel£­View£­ControllerµÄ¼òд¡£"Model" ´ú±íµÄÊÇÓ¦ÓõÄÒµÎñÂß¼­£¨Í¨¹ýJavaBean£¬EJB× ......

JavaÖÐCalendarºÍDateµÄһЩʹÓÃÓ÷¨¼¼ÇÉ

1. Èç¹ûÒѾ­ÖªµÀij¸öµØµãµÄʱÇø£¬Ä꣬Ô£¬ÈÕ£¬Ê±£¬·Ö£¬Ã룬ϣÍûµÃµ½×ª»»ºóµÄ±¾ÏµÍ³Ê±¼ä£¬¿ÉÒÔ²ÉÓÃÈçϵķ½·¨£º
·½·¨£º¼ÙÉèʱÇøÊÇGMT+08:00,£¬ÄêÊÇ2009Ä꣬ÔÂÊÇ11Ô£¬ÈÕÊÇ7ÈÕ£¬Ê±ÊÇ10ʱ£¬·ÖÊÇ50·Ö£¬ÃëÊÇ30¡£
public class Time {
 
 public static void main(String[] args) {
  TimeZone tz = Tim ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ