锘??xml version="1.0" encoding="utf-8" standalone="yes"?>自拍偷自拍亚洲精品播放,亚洲导航深夜福利,久久夜色精品国产嚕嚕亚洲avhttp://www.tkk7.com/LoveAngela/琛ㄩ潰鐨勬縺鐑堟槸鐢變簬鍐呭績鐨勫崟钖勶紝鐪熸鐨勫姏閲忓鍚屾祦姘翠竴鑸矇闈?/description>zh-cnSat, 10 May 2025 10:39:22 GMTSat, 10 May 2025 10:39:22 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灝忓伐鍏風(fēng)被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 鎻愬彇鐐規(guī)柟娉?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(" ");
        }
    }
}

]]>
主站蜘蛛池模板: 亚洲精品蜜桃久久久久久| 国产99视频精品免费视频7| 国产亚洲大尺度无码无码专线 | 亚洲欧洲日产国码高潮αv| 在线a亚洲老鸭窝天堂av高清| 19禁啪啪无遮挡免费网站| 久久精品亚洲视频| 免费国产污网站在线观看15| 亚洲国产成人高清在线观看| 男人j进入女人j内部免费网站| 亚洲啪啪综合AV一区| 野花香高清视频在线观看免费| 亚洲丁香色婷婷综合欲色啪| 无人在线观看免费高清| 亚洲天堂久久精品| 国产成人精品免费视频网页大全| 亚洲三级在线免费观看| 永久免费AV无码网站在线观看| 成人精品国产亚洲欧洲| 相泽亚洲一区中文字幕| 久久久精品免费视频| 亚洲国产美女精品久久| 四虎免费大片aⅴ入口| 青青草国产免费国产是公开 | 国产男女猛烈无遮挡免费视频网站| 日韩欧美亚洲中文乱码| 国产精品亚洲综合一区| 精品无码国产污污污免费网站 | 69视频免费观看l| 国产午夜亚洲精品| 免费在线不卡视频| 免费人成激情视频在线观看冫| 亚洲精品欧洲精品| 免费无码黄网站在线观看| 日本一区二区三区在线视频观看免费 | 成人福利在线观看免费视频| 亚洲AV无码专区电影在线观看| 午夜免费福利视频| 亚洲sm另类一区二区三区| 亚洲深深色噜噜狠狠爱网站| 无码av免费毛片一区二区|