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

JavaѹËõÀà¿âµÄʹÓà 5.ÐÔÄܼì²â

¡¡¡¡inkfishÔ­´´£¬ÇëÎðÉÌÒµÐÔÖÊתÔØ£¬×ªÔØÇë×¢Ã÷À´Ô´£¨http://blog.csdn.net/inkfish
£©¡£
¡¡¡¡ÔÚÑ¡ÔñѹËõ¡¢´ò°üËã·¨µÄʱºò£¬²»½ö½öҪѡÔñËã·¨£¬»¹ÐèҪѡÔñÓÃÄĸöʵÏÖÀà¿â£¬²»Í¬µÄʵÏÖÀà¿âʵÏÖЧÂʲ»Í¬£¬Ä¬ÈÏѹËõ±ÈÂʲ»Í¬¡£ÎªÁ˲âÊÔJDK¡¢Ant¡¢commons-compressÔÚĬÈÏÇé¿öϵÄЧÂÊ£¬Éè¼ÆÁËÈçϳÌÐò£º£¨À´Ô´£ºhttp://blog.csdn.net/inkfish£©
100M´óСËæ»ú×Ö·û´®ÎļþÉú³É³ÌÐò£º£¨À´Ô´£ºhttp://blog.csdn.net/inkfish£©
package study.inkfish.compress;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.RandomStringUtils;
public class CharFileGener {
public static void main(String[] args) throws IOException {
charGener();
}
private static void charGener() throws IOException {
Writer writer = new BufferedWriter(new FileWriter(new File("D:/TestCompress/txt.txt")),
1024 * 1024 * 5);
int max = 1024 * 1024;
String strs = "`1234567890-=~!@#$%^&*()_+qwertyuiop[]\\QWERTYUIOP{}|asdfghjkl;'\":LKJHGFDSAzxcvbnm,./?><MNBVCXZ";
for (int i = 0; i < max; i++) {
writer.write(RandomStringUtils.random(99, strs));
writer.write("\n");
}
IOUtils.closeQuietly(writer);
}
}

ÉÏÃæµÄ´úÂëÓÃÓÚÉú³ÉËæ»úµÄ°ë½Ç×Ö·û×é³ÉµÄÎı¾Îļþ£¬´óСΪ100M£¨1024*1024*100byte£©¡££¨À´Ô´£ºhttp://blog.csdn.net/inkfish£©
ÐÔÄܲâÊÔ³ÌÐò£º£¨À´Ô´£ºhttp://blog.csdn.net/inkfish£©
package study.inkfish.compress;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
public class TestCompress {
public static void main(String[] args) throws IOException {
File srcFile = new File("D:/TestCompress", "text.txt");
for (int i = 0; i < 3; i++) {//Ñ­»·²âÊÔÈý±é
doTest(srcFile);
cleanDir(srcFile);
}
}
private static void cleanDir(File srcFile) throws IOException {
FileUtils.deleteDirectory(new Fi


Ïà¹ØÎĵµ£º

ʹÓÃJAVA¿ª·¢ÏµÍ³ÍÐÅ̳ÌÐò

 Ê¹ÓÃJAVA¿ª·¢ÏµÍ³ÍÐÅ̳ÌÐò
@for&ever 2009-11-27
²Î¿¼ÎÄÕ¡¶New System Tray Functionality in Java SE 6¡·£¬ÍøÖ· http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/systemtray/ ¡£
JDK±ØÐëÒªÔÚ 1.6 °æ±¾¡£
×î½üÏîÄ¿ÖÐҪʵÏÖ¶¨Ê±ÈÎÎñ³£×¤ÏµÍ³£¬Äܹ»Í¬Ê±ÓÐÒ»¸ö±È½ÏÓѺõIJÙ×÷·½Ê½Ìṩ¸ø ......

Java ³ÌÐòÄÚ´æ·ÖÎö

   java³ÌÐòÄÚ´æÖ÷Òª·ÖΪÁË2¸ö²¿·Ö£¬°üÀ¨ stack segment(Õ»ÄÚ´æ)¡¢heap segment(¶ÑÄÚ´æ)¡£
    ÔÚ·ÖÎöJava³ÌÐòÄÚ´æ·ÖÅäÇé¿öʱ£¬ÎÒÃÇ´ÓÏÂÃæÕâ¸ö¾­³£±»Ê¹ÓõÄÀý×Ó¿ªÊ¼°É¡£
    ÏÂÃæ³ÌÐò½«´òӡʲôÄØ£¿
   
Java´úÂë
String s1 = new S ......

JavaỊ̈߳º¸ÅÄîÓëÔ­Àí

 
SCJP5ѧϰ±Ê¼Ç
 
Ò»¡¢²Ù×÷ϵͳÖÐÏ̺߳ͽø³ÌµÄ¸ÅÄî
ÏÖÔڵIJÙ×÷ϵͳÊǶàÈÎÎñ²Ù×÷ϵͳ¡£¶àÏß³ÌÊÇʵÏÖ¶àÈÎÎñµÄÒ»ÖÖ·½Ê½¡£
½ø³ÌÊÇÖ¸Ò»¸öÄÚ´æÖÐÔËÐеÄÓ¦ÓóÌÐò£¬Ã¿¸ö½ø³Ì¶¼ÓÐ×Ô¼º¶ÀÁ¢µÄÒ»¿éÄÚ´æ¿Õ¼ä£¬Ò»¸ö½ø³ÌÖпÉÒÔÆô¶¯¶à¸öÏ̡߳£±ÈÈçÔÚWindowsϵͳÖУ¬Ò»¸öÔËÐеÄexe¾ÍÊÇÒ»¸ö½ø³Ì¡£
 
Ïß³ÌÊÇÖ¸½ø³ÌÖеÄÒ ......

JAVAºÎνÃæÏò¶ÔÏó

 javaÊÇÒ»ÖÖÃæÏò¶ÔÏóµÄ±à³ÌÓïÑÔ£¬ÔõôÀí½â£¿
javaдµÄ³ÌÐò¶¼ÊÇÃæÏò¶ÔÏóµÄÂð£¿
Äã¿ÉÄÜÈÏΪ£¬javaÉúÀ´¾ÍÊÇÃæÏò¶ÔÏóµÄ¡£
ÇÒ¿´£º
package cn.nileader.calculate_OPP;
import java.util.Scanner;
/**
* ÕâÊÇÒ»¸öOPPµÄµÄ¼ÆËãÆ÷(¼Ó·¨ºÍ¼õ·¨)
* @author nileader
* @see http://www.nileader.cn
*/
public cla ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ