锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲大尺度无码无码专区,亚洲mv国产精品mv日本mv,亚洲欧洲精品在线http://www.tkk7.com/LoveAngela/琛ㄩ潰鐨勬縺鐑堟槸鐢變簬鍐呭績鐨勫崟钖勶紝鐪熸鐨勫姏閲忓鍚屾祦姘翠竴鑸矇闈?/description>zh-cnSat, 10 May 2025 10:57:52 GMTSat, 10 May 2025 10:57:52 GMT60榪呴浄涓嬭澆寮鏀懼紩鎿嶥emo鐨?Java鐗堟湰+娉ㄩ噴鐗?/title><link>http://www.tkk7.com/LoveAngela/archive/2012/11/02/ThunderEngine.html</link><dc:creator>鐡㈣彎鐨勯洦澶?/dc:creator><author>鐡㈣彎鐨勯洦澶?/author><pubDate>Fri, 02 Nov 2012 09:44:00 GMT</pubDate><guid>http://www.tkk7.com/LoveAngela/archive/2012/11/02/ThunderEngine.html</guid><description><![CDATA[     鎽樿: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package skj.thunder;import com.sun.jna.Native;import com.sun.jna.NativeLong;import ...  <a href='http://www.tkk7.com/LoveAngela/archive/2012/11/02/ThunderEngine.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/LoveAngela/aggbug/390707.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/LoveAngela/" target="_blank">鐡㈣彎鐨勯洦澶?/a> 2012-11-02 17:44 <a href="http://www.tkk7.com/LoveAngela/archive/2012/11/02/ThunderEngine.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>POI Excel灝忓伐鍏風被http://www.tkk7.com/LoveAngela/articles/389969.html鐡㈣彎鐨勯洦澶?/dc:creator>鐡㈣彎鐨勯洦澶?/author>Sun, 21 Oct 2012 09:43:00 GMThttp://www.tkk7.com/LoveAngela/articles/389969.htmlhttp://www.tkk7.com/LoveAngela/comments/389969.htmlhttp://www.tkk7.com/LoveAngela/articles/389969.html#Feedback0http://www.tkk7.com/LoveAngela/comments/commentRss/389969.htmlhttp://www.tkk7.com/LoveAngela/services/trackbacks/389969.html  1 package poi.excel;
  2 
  3 import java.awt.Graphics;
  4 import java.awt.Image;
  5 import java.awt.image.BufferedImage;
  6 import java.io.ByteArrayOutputStream;
  7 import java.io.FileInputStream;
  8 import java.io.IOException;
  9 import javax.imageio.ImageIO;
 10 import org.apache.poi.hssf.usermodel.HSSFClientAnchor;
 11 import org.apache.poi.hssf.usermodel.HSSFPatriarch;
 12 import org.apache.poi.hssf.usermodel.HSSFPicture;
 13 import org.apache.poi.hssf.usermodel.HSSFSheet;
 14 import org.apache.poi.hssf.usermodel.HSSFWorkbook;
 15 
 16 /**
 17  * poi HSSF 鎻愬彇鐐規柟娉?br /> 18  * @author sikaijian
 19  */
 20 public class Excel03Util {
 21     /**
 22      * 鐢誨浘鐗?br /> 23      * @param sheet
 24      * @param wb
 25      * @param startCol
 26      * @param startRow
 27      * @param endCol
 28      * @param endRow
 29      * @param pictureIndex 鍥劇墖绱㈠紩鍙?nbsp;闇瑕佸厛鍦╳orkbook涓姞鍏ュ浘鐗囪祫婧?br /> 30      * @throws IOException
 31      * @author sikaijian
 32      */
 33     public static void drawPicture(HSSFSheet sheet, HSSFWorkbook wb,
 34             short startCol, int startRow, short endCol, int endRow,
 35             int pictureIndex) throws IOException {
 36         // 鍥劇墖瀹瑰櫒
 37         HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
 38         
 39         // 閿氱偣 瀹瑰櫒涓嬮敋浣嶇疆
 40         HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 0, 255, startCol,
 41                 startRow, endCol, endRow);
 42         anchor.setAnchorType(2);
 43         
 44         // 瀹瑰櫒涓嬮敋錛屽茍杞藉叆鍥劇墖
 45         HSSFPicture picture = patriarch.createPicture(anchor, pictureIndex);
 46 
 47         picture.resize();
 48         picture.setLineStyle(picture.LINESTYLE_DASHDOTGEL);
 49     }
 50 
 51     /**
 52      * 鍔犺澆鍥劇墖
 53      * @param img 鍥劇墖瀵硅薄
 54      * @param wb
 55      * @return 鍥劇墖绱㈠紩鍙?br /> 56      * @throws IOException
 57      * @author sikaijian
 58      */
 59     public static int loadPicture(Image img, HSSFWorkbook wb)
 60             throws IOException {
 61         int pictureIndex;
 62         ByteArrayOutputStream arrayOut = null;
 63         try {
 64             arrayOut = new ByteArrayOutputStream();
 65             BufferedImage buImage = new BufferedImage(img.getWidth(null), img
 66                     .getHeight(null), BufferedImage.TYPE_INT_RGB);
 67             Graphics g = buImage.getGraphics();
 68             g.drawImage(img, 0, 0, null);
 69             ImageIO.write(buImage, "png", arrayOut);
 70 
 71             byte[] data = arrayOut.toByteArray();
 72 
 73             pictureIndex = wb.addPicture(data, HSSFWorkbook.PICTURE_TYPE_PNG);
 74         } finally {
 75             if (null != arrayOut) {
 76                 arrayOut.close();
 77             }
 78         }
 79 
 80         return pictureIndex;
 81     }
 82 
 83     /**
 84      * 鍔犺澆鍥劇墖
 85      * @param path 鍥劇墖璺緞
 86      * @param wb
 87      * @return 鍥劇墖绱㈠紩鍙?br /> 88      * @throws IOException
 89      */
 90     public static int loadPicture(String path, HSSFWorkbook wb)
 91             throws IOException {
 92         int pictureIndex;
 93         FileInputStream fis = null;
 94         ByteArrayOutputStream bos = null;
 95         try {
 96             fis = new FileInputStream(path);
 97             bos = new ByteArrayOutputStream();
 98             int c;
 99             while ((c = fis.read()) != -1)
100                 bos.write(c);
101             pictureIndex = wb.addPicture(bos.toByteArray(),
102                     HSSFWorkbook.PICTURE_TYPE_PNG);
103         } finally {
104             if (fis != null)
105                 fis.close();
106             if (bos != null)
107                 bos.close();
108         }
109         return pictureIndex;
110     }
111 }
112 

]]>
甯屽皵鎺掑簭Java浠g爜http://www.tkk7.com/LoveAngela/articles/shellSort.html鐡㈣彎鐨勯洦澶?/dc:creator>鐡㈣彎鐨勯洦澶?/author>Fri, 21 Sep 2012 09:30:00 GMThttp://www.tkk7.com/LoveAngela/articles/shellSort.htmlhttp://www.tkk7.com/LoveAngela/comments/388284.htmlhttp://www.tkk7.com/LoveAngela/articles/shellSort.html#Feedback0http://www.tkk7.com/LoveAngela/comments/commentRss/388284.htmlhttp://www.tkk7.com/LoveAngela/services/trackbacks/388284.html/**
 * 甯屽皵鎺掑簭
 * 
@author sikaijian
 
*/
public class ShellSort {
    public static void sort(int[] data){
        int d = data.length/2;
        while(d!=0){
            directInsertSort(data, d);
            d/=2;
        }
    }
    
    /**
     * 甯﹀閲忕殑鐩存帴鎻掑叆鎺掑簭
     * 
@param data 寰呮帓搴忔暟緇?br />     * @param d 澧為噺
     
*/
    private static void directInsertSort(int[] data, int d){
        int len = data.length;
        
        for(int i=0; i+d<len; i++){
            int pCurrent = i+d;
            int left = i-1;
            while(pCurrent<len){
                int front = pCurrent-d;
                int key = data[pCurrent];
                while(front>left && data[front]>key){
                    data[front+d] = data[front];
                    front-=d;
                }
                data[front+d] = key;
                
                pCurrent+=d;
            }
        }
    }
    
    public static void showArray(int[] array){
        for (int t : array) {
            System.out.print(t);
            System.out.print(" ");
        }
    }
    
    /**
     * 嫻嬭瘯浠g爜
     * 
@param args
     
*/
    public static void main(String[] args) {
        int[] data = new int[] { 49, 23, 65, 13, 38, 96, 12, 33, 88, 123, 22,
                11, 9, 55, 111, 0 };

        showArray(data);
        System.out.println();
        System.out.println("------------------------------");
        ShellSort.sort(data);

        showArray(data);
    }
}

]]>
鐩存帴鎻掑叆鎺掑簭Java浠g爜http://www.tkk7.com/LoveAngela/articles/DirectInsertSort.html鐡㈣彎鐨勯洦澶?/dc:creator>鐡㈣彎鐨勯洦澶?/author>Fri, 21 Sep 2012 06:23:00 GMThttp://www.tkk7.com/LoveAngela/articles/DirectInsertSort.htmlhttp://www.tkk7.com/LoveAngela/comments/388256.htmlhttp://www.tkk7.com/LoveAngela/articles/DirectInsertSort.html#Feedback0http://www.tkk7.com/LoveAngela/comments/commentRss/388256.htmlhttp://www.tkk7.com/LoveAngela/services/trackbacks/388256.html/**
 * 鐩存帴鎻掑叆鎺掑簭
 * 
@author sikaijian
 
*/
public class DirectInsertSort {
    public static void sort(int[] data){
        int pCurrent = 1;   // 璁ゅ畾絎?涓暟鏄湁搴忕殑錛屼粠絎?涓暟寮濮嬫彃鍏ユ帓搴?/span>
        int n = data.length;
        
        while(pCurrent<n){
            int front = pCurrent-1;
            int key = data[pCurrent];
            
            // 褰撳墠瑕佹彃鍏ョ殑鏁板拰宸﹁竟鐨勬湁搴忛槦鍒楁瘮杈冿紙浠庡彸寰宸︽瘮杈冿紝姣旇緝涓嬈$Щ鍔ㄤ竴嬈★級
            while(front>-1 && key<data[front]){
                data[front+1] = data[front];
                front--;
            }
            
            data[front+1] = key;
            
            pCurrent++;
        }
    }
    
    /**
     * 嫻嬭瘯浠g爜
     * 
@param args
     
*/
    public static void main(String[] args) {
        int[] data = new int[] { 49, 23, 65, 13, 38, 96, 12, 33, 88, 123, 22,
                11, 9, 55, 111, 0 };

        for (int t : data) {
            System.out.print(t);
            System.out.print(" ");
        }
        System.out.println();
        System.out.println("------------------------------");
        DirectInsertSort.sort(data);

        for (int t : data) {
            System.out.print(t);
            System.out.print(" ");
        }
    }
}

]]>
鍐掓場鎺掑簭Java浠g爜http://www.tkk7.com/LoveAngela/articles/bubblesort.html鐡㈣彎鐨勯洦澶?/dc:creator>鐡㈣彎鐨勯洦澶?/author>Fri, 21 Sep 2012 05:32:00 GMThttp://www.tkk7.com/LoveAngela/articles/bubblesort.htmlhttp://www.tkk7.com/LoveAngela/comments/388249.htmlhttp://www.tkk7.com/LoveAngela/articles/bubblesort.html#Feedback0http://www.tkk7.com/LoveAngela/comments/commentRss/388249.htmlhttp://www.tkk7.com/LoveAngela/services/trackbacks/388249.html
/**
 * 鍐掓場鎺掑簭
 * 
@author sikaijian
 
*/
public class BubbleSort {
    public static void sort(int[] data){
        if(data.length<=1) return;
        
        /**
* 姣忎竴瓚熸帓搴忛兘鎶婃渶澶х殑鏁板瓧鏀懼埌鏈鍚?/div>
* 涓嬩竴瓚熸帓搴忓悗錛屾渶澶х殑鏁頒笉鍙傚姞
* 鎬誨叡n-1瓚燂紙n涓烘暟緇勯暱搴︼級
*/
        for (int i = data.length-1; i > 0; i--) {
            for (int j = 0; j < i; j++) {
                if(data[j]>data[j+1]){
                    int temp = data[j];
                    data[j] = data[j+1];
                    data[j+1] = temp;
                }
            }
        }
    }
    
    /**
     * 嫻嬭瘯浠g爜
     * 
@param args
     
*/
    public static void main(String[] args) {
        int[] data = new int[] { 49, 23, 65, 13, 38, 96, 12, 33, 88, 123, 22,
                11, 9, 55, 111, 0 };

        for (int t : data) {
            System.out.print(t);
            System.out.print(" ");
        }
        System.out.println();
        System.out.println("------------------------------");
        BubbleSort.sort(data);

        for (int t : data) {
            System.out.print(t);
            System.out.print(" ");
        }
    }
}


]]>
蹇熸帓搴廕ava浠g爜http://www.tkk7.com/LoveAngela/articles/quicksort.html鐡㈣彎鐨勯洦澶?/dc:creator>鐡㈣彎鐨勯洦澶?/author>Fri, 21 Sep 2012 03:01:00 GMThttp://www.tkk7.com/LoveAngela/articles/quicksort.htmlhttp://www.tkk7.com/LoveAngela/comments/388233.htmlhttp://www.tkk7.com/LoveAngela/articles/quicksort.html#Feedback0http://www.tkk7.com/LoveAngela/comments/commentRss/388233.htmlhttp://www.tkk7.com/LoveAngela/services/trackbacks/388233.html/**
 * 
@author sikaijian
 
*/
public class QuickSort {
    
    /**
     * 蹇熸帓搴忕畻娉曞疄鐜?br />     * 
@param data 寰呮帓搴忔暟緇?br />     * @param left 宸﹁竟鐣?nbsp;鍒濆0
     * 
@param right 鍙寵竟鐣?nbsp;鍒濆鏁扮粍闀垮害-1
     * 
@author sikaijian
     
*/
    public static void sort(int[] data, int left, int right) {
        if (left > right)
            return;
        int pHead = left;  // 澶撮儴鎸囬拡
        int pTail = right;  // 灝鵑儴鎸囬拡
        int key = data[left];  // 鍝ㄥ叺

        while (pHead < pTail) {
            // 浠庡彸寰宸﹂亶鍘嗭紝鎵懼埌姣攌ey灝忕殑鏁幫紝鏀懼埌鍓嶉潰
            while (pHead < pTail && data[pTail] > key) pTail--;
            if (pHead < pTail) data[pHead++] = data[pTail];
            
            // 浠庡乏寰鍙抽亶鍘嗭紝鎵懼埌姣攌ey澶х殑鏁幫紝鏀懼埌鍚庨潰
            while (pHead < pTail && data[pHead] < key) pHead++;
            if (pHead < pTail) data[pTail--] = data[pHead];
        }
        
        data[pHead] = key; // 褰掍綅
        
        sort(data, left, pHead-1);  // 鎺掑簭宸﹁竟鐨勬暟緇?/span>
        sort(data, pHead+1, right);  // 鎺掑簭鍙寵竟鐨勬暟緇?/span>
    }
    
    /**
     * 嫻嬭瘯浠g爜
     * 
@param args
     
*/
    public static void main(String[] args) {
        int[] data = new int[] { 49, 23, 65, 13, 38, 96, 12, 33, 88, 123, 22,
                11, 9, 55 };

        for (int t : data) {
            System.out.print(t);
            System.out.print(" ");
        }
        System.out.println();
        System.out.println("------------------------------");
        QuickSort.sort(data, 0, data.length - 1);

        for (int t : data) {
            System.out.print(t);
            System.out.print(" ");
        }
    }
}

]]>
主站蜘蛛池模板: 免费毛片在线看片免费丝瓜视频| 国产精品免费大片一区二区| 久久久久亚洲AV片无码下载蜜桃| 亚洲AV无码一区二区三区系列 | 无码日韩精品一区二区免费| 日韩免费a级在线观看| 亚洲AV网站在线观看| 免费黄色毛片视频| 亚洲最大AV网站在线观看| 亚洲国产情侣一区二区三区| 亚洲国产精品成人综合色在线| 国内精品免费久久影院| 国产精品色拉拉免费看| 亚洲 综合 国产 欧洲 丝袜| 一级做a爰全过程免费视频毛片| 日本免费网址大全在线观看| 亚洲中文字幕无码一区| 免费国产成人午夜在线观看| 成人毛片18女人毛片免费96| 久久丫精品国产亚洲av不卡 | 亚洲AV午夜成人片| 99精品视频免费在线观看| 亚洲精品一级无码鲁丝片| 妞干网免费视频观看| 亚洲色偷偷偷综合网| 亚洲精品白浆高清久久久久久| 国产成人精品日本亚洲直接| 在线看片免费人成视频播| 免费va人成视频网站全| 亚洲人成人77777网站不卡| 免费看www视频| baoyu777永久免费视频 | 亚洲精品动漫免费二区| 亚洲一区日韩高清中文字幕亚洲| 亚洲人成未满十八禁网站| 精品免费人成视频app| 亚洲AV无码专区电影在线观看| 永久免费av无码不卡在线观看| 特黄特色大片免费| 免费欧洲美女牲交视频| 337P日本欧洲亚洲大胆精品|