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

java£º´óÊý¾ÝÎļþдÈ룬¶ÁÈ¡£¬·Ö¸î£¬ÅÅÐò£¬ºÏ²¢

package arrays.file;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Random;
public class ConcludeCombinationSortWrite {
 /**
  * ´óÊý¾ÝÅÅÐòºÏ²¢
  *
  * @param args
  */
 public static void main(String[] args) throws IOException {
  // дÈëÎļþµÄ·¾¶
  String filePath = "D:\\456";
  // ÇзÖÎļþµÄ·¾¶
  String sqlitFilePath = "D:\\456\\123";
  //Êý¾ÝµÄ¸öÊý
  int CountNumbers=10000000;
  
  //×ÓÎļþµÄ¸öÊý
  int CountFile=10;
  
  //¾«¶È
  int countAccuracy=30*CountFile;
  
  long startNumber=System.currentTimeMillis();
  // дÈë´óÊý¾ÝÎļþ
  WriteData(filePath,CountNumbers);
  System.out.println("´æ´¢Íê±Ï");
  
  // ½«´óÊý¾ÝÎļþÇзֵ½ÁíÍâµÄÊ®¸öСÎļþÖÐ
  sqlitFileDate(filePath, sqlitFilePath,CountFile);
  System.out.println("ÎļþÇиîÍê±Ï£¡");
  // °Ñÿ¸öÎļþµÄÊý¾Ý½øÐÐÅÅÐò
  singleFileDataSort(sqlitFilePath,CountFile);
  System.out.println("ÿ¸ö×ÓÎļþÅÅÐòÍê±Ï£¡");
  
  //¾«¶Èµ÷Õû£¬Ê®¸öÎļþÊý¾Ý½øÐбȽÏÕûºÏ
  deathDataFile(filePath,sqlitFilePath,countAccuracy,CountFile);
  System.out.println("ÕûºÏÍê±Ï");
  long stopNumber=System.currentTimeMillis();
  System.out.println("ºÄʱ"+(stopNumber-startNumber)/1000+"ºÁÃë");
 }
 // дÈë´óÊý¾ÝÎļþ
 public static void WriteData(String path,int CountNumbers) throws IOException {
  path = path + "\\12114.txt";
  FileWriter fs = new FileWriter(path);
  BufferedWriter fw=new BufferedW


Ïà¹ØÎĵµ£º

JAVA ¶à¶Ô¶àÀý×Ó

    ʹÓÃÀ༯²»½ö¿ÉÒÔ±íʾ³öÒ»¶ÔÒ»µÄ¹Øϵ£¬Ò²¿ÉÒÔ±íʾ³ö¶à¶Ô¶àµÄ¹Øϵ¡£ÀýÈ磬һ¸öѧÉú¿ÉÒÔÑ¡¶àÃſγ̣¬Ò»Ãſγ̿ÉÒÔÓжà¸öѧÉú²Î¼Ó£¬ÄÇôÕâ¾ÍÊÇÒ»¸öµäÐ͵Ķà¶Ô¶à¹Øϵ¡£
ÒªÍê³É±¾³ÌÐò£¬Ê×ÏÈÓ¦¸Ã¶¨ÒåÁ½¸öÀࣺѧÉúÐÅÏ¢ÀàStudent¡¢¿Î³ÌÐÅÏ¢ÀàCourse¡£ÔÚÒ»¸öѧÉúÀàÖдæÔÚÒ»¸ö¼¯ºÏ£¬±£´æÈ«²¿µÄ¿Î³Ì£»¶øÔڿγÌÀàÖ ......

java Á¬½Ó sql 2005 µÄ·½·¨

java Á¬½Ó sql 2005 µÄ·½·¨£º
 1¡£µ½Î¢Èí¹Ù·½ÍøÕ¾ÏÂÔØ2005µÄjdbc²¢½âѹ£¬»ñµÃÎļþsqljdbc.jar
2¡£¸´ÖÆÎļþsqljdbc.jarµ½jdkĿ¼\jdk1.5\jre\lib\extÏ¡£
 3¡£¿ªÊ¼-¡µ³ÌÐò-¡µsql server 2005-¡µÅäÖù¤¾ß-¡µSQL Server Configuration Manager¡£Æô¶¯sql 2005·þÎñ¡£
µã»÷ sql server2005ÍøÂçÅäÖýڵ㣬²¢Ñ¡ÖÐ&rd ......

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


Êý¾Ý¿âÁ¬½Ó³Ø£¬ÊÇÒ»ÖÖÏ൱ʵÓõÄÓ¦ÓóÌÐò¡£Ëü¿ÉÒÔ±£´æ¡¢Î¬»¤¼°´´½¨Óû§ËùÐèµÄÊý¾Ý¿âÁ¬½Ó¡£´Ó¶øʹµÃÓû§µÃµ½Ò»¸öÁ¬½ÓµÄʱ¼ä½µµÍ90%ÒÔÉÏ¡£´ó´óÌáÉýÁËÊý¾Ý¿â·ÃÎʵķ´Ó¦Ê±¼ä¡£
Õâ¸öÊÇÒ»¸ö¿ªÔ´µÄ´úÂë¡£´ó¼Ò¿ÉÒÔÐÞ¸ÄËü¡¢Ê¹ÓÃËü¡£
Ï£ÍûÎҵĴúÂëÄܶԴó¼ÒÓÐÓá£
´Ë´úÂ룬¾­¹ý1000ÊýÁ¿¼¶µÄ¶àÏ̲߳¢·¢·ÃÎʲâÊÔ¡£ÔÚËĺËCPUÏÂÒ²½øÐÐ ......

java£ºdoubleÀàÐͽØÈ¡Á©Î»Ð¡Êý£¬²»È¡Éᣬ

public class Split{
 public static void main(String[] args){
       double pai = 3.14159;
        findTwo(pai);
  public static void findTwo(double value){
    System.out.println(new DecimalFormat("0.##"). ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ