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

Java²Ù×÷Microsoft WordÖ®jacob (2)

 ÕâÀïÓÐÒ»¸öMSWordManager À࣬ÊÇjacob¹Ù·½·¢²¼µÄ¹¤¾ßÀ࣬ÀïÃæÓдó¶àÊýJava²Ù×÷MS OfficeµÄ¹¤¾ß¡£
   
 
package com.test;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.Dispatch;
import com.jacob.com.Variant;
public class MSWordManager {
        // wordÎĵµ
        private Dispatch doc;
        // wordÔËÐгÌÐò¶ÔÏó
        private ActiveXComponent word;
        // ËùÓÐwordÎĵµ¼¯ºÏ
        private Dispatch documents;
        // Ñ¡¶¨µÄ·¶Î§»ò²åÈëµã
        private Dispatch selection;
        private boolean saveOnExit = true;
        /** *//**
         *    
         * @param visible Ϊtrue±íʾwordÓ¦ÓóÌÐò¿É¼û
         */
        public MSWordManager(boolean visible) {
                if (word == null) {
                        word = new ActiveXComponent("Word.Application");
                        word.setProperty("Visible", new Variant(visible));
        &nbs


Ïà¹ØÎĵµ£º

FlexÖÐXMLSocketÓëJavaÖÐSocketͨÐÅ

FlexÖÐXMLSocketÓëJavaÖÐSocketͨÐÅ£¬Óöµ½µÄÎÊÌâÊÇ£¬JavaÖеÄsocketÄܹ»½ÓÊܵ½XMLSocket´«ÊäµÄÊý¾Ý£¬µ«ÊÇFlex²¢²»ÄܽÓÊܵ½´ÓJava·þÎñÆ÷´«ÊäµÄÊý¾Ý£¬´ÓÍøÉÏËÑÁ˺öà×ÊÁÏ£¬ÖÕÓÚÕÒµ½ÁËÔ­Òò£¬Ô­À´XMLSocket ½ÓÊÕµ½·þÎñ¶ËÏ·¢µÄÊý¾Ýʱ£¬½«Á¬Ðø·ÅÓÚ½ÓÊÕ»º³åÇø£¬Ö±µ½½ÓÊÕµ½ "\0" ×Ö½Ú£¨×Ö½ÚÄÚÈÝΪ ASCII Öµ 0£©£¬²ÅÈÏΪ½ÓÊÕÍê³É£¬² ......

Java HashMapºÍTreeMapµÄÅÅÐòÎÊÌâ×ܽá

Map´æ´¢µÄÊÇkey->valueµÄÖµ¶Ô£¬keyµÄÖµÊÇΨһµÄ£¬¶øvalueµÄÖµ¿ÉÒÔÖظ´¡£Í¨³£Ê¹ÓõÄÊÇHashMap»òTreeMap£¬Èç¹û¿¼ÂÇÐÔÄÜ£¬Ê¹ÓÃHashMap¡£TreeMapʹÓúìºÚÊ÷ʵÏÖ£¬±£ÁôÓÐkeyֵ˳ÐòÐÔ£¬»á×Ô¶¯°´ÕÕkeyÖµÅÅÐò¡£
ĬÈÏÊÇ°´ÕÕkeyÖµµÄÉýÐòÅÅÐò£¬keyÖµ±ØÐëʵÏÖ Comparator½Ó¿Ú¡£Èç¹ûÏ£Íû°´ÕÒÒ»¶¨¹æÔòÅÅÐò£¬ÔòÐèÒªÖØж¨Òåcompareº¯Êý ......

JAVA JDBC·ÃÎÊÊý¾Ý¿â±ê×¼´úÂë

 package edu.zzu.jdbc.Test;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import com.ambow.jdbc.entity.Student;
public class TestDBConn{
 
 public static void main(String args[]){
  
  Str ......

java £ºÁ½¸ö¶ÔÏóÏàµÈequalsºÍ==µÄÇø±ð

 String s1 = “abc“; 
s1Ö¸ÏòÁË“abc”
String s2 = new String(“abc“);
Éú³ÉÁ˶ÔÏónew String(“abc“);s2Ö¸ÏòÕâ¸ö¶ÔÏó£¬Õâ¸ö¶ÔÏóÒýÓÃÁË“abc”£»
equalsÒâÒåÊÇÅжÏÄÚÈÝÊÇ·ñÒ»Ö±ÒòΪs1ÄÚÈÝΪ“abc&rdq ......

javaѧϰ±Ê¼Ç(1)

     µÇ¼ÑéÖ¤£¬µ±Óû§ÃûΪabc£¬ÃÜÂëΪ123ʱ·µ»Øͨ¹ý£¬·ñÔòΪµÇ¼ʧ°Ü£¬ÈôÖ»ÊäÈëÁËÆäÖÐÒ»ÏÔò·µ»Ø²ÎÊý²»ÕýÈ·¡£
´úÂëÈçÏ£º
   
//µÇ¼ÑéÖ¤·¶Àý ——Ò»¸ö±ê×¼µÄ³ÌÐòÉè¼Æģʽ
class Login
{    
       private S ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ