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

ÀûÓÃjavaÄÚ´æÓ³ÉäÎļþ»úÖÆʵÏÖCRCÑ­»·ÈßÓàУÑé

import java.nio.MappedByteBuffer;   
import java.nio.channels.FileChannel;   
import java.util.zip.CRC32;   
public static void main(String[] args){   
            try {                               //¶Ô
import java.nio.MappedByteBuffer;  
import java.nio.channels.FileChannel;  
import java.util.zip.CRC32;  
public static void main(String[] args){  
            try {                               //¶ÔÎļþ½øÐÐcrcУÑé  
            long begin = System.currentTimeMillis();  
            FileInputStream in = new FileInputStream("code.py");//Ö¸¶¨Ä¿±êÎļþ  
            FileChannel channel = in.getChannel(); //´ÓÎļþÖлñÈ¡Ò»¸öͨµÀ  
            CRC32 crc = new CRC32();  
            int length = (int)channel.size();  
            MappedByteBuffer buffer = channel.map(FileChannel.MapMode.READ_ONLY, 0, length); //ÓÃÖ»¶Áģʽ´Ó¸ÃͨµÀ»ñÈ¡×Ö½Ú»º³å£¬ÊµÏÖÎļþµ½ÄÚ´æµÄÓ³Éä  
            for(int i = 0;i<length;i++)  
     


Ïà¹ØÎĵµ£º

javaÖй¹Ô캯ÊýµÄµ÷ÓÃ˳Ðò

µ±Ò»¸ö¸´ÔӵĶÔÏó±»¹¹Ôìʱ,ËüµÄ¹¹Ô캯Êý°´ÏÂÃæµÄ˳Ðò±»µ÷ÓÃ(that the order of constructor calls for a complex object is as follows)
    1.Æä»ùÀà(base-class)µÄ¹¹Ô캯Êý±»µ÷ÓÃ,Õâ¸ö²½ÖèÒԵݹéµÄ·½Ê½Öظ´,ËùÒÔ×îµ×²ã(the root of hierarchy)µÄ¹¹Ô캯ÊýÊ×Ïȱ»Ö´ÐÐ,È»ºóÊÇËüÉÏÒ»²ãÅÉÉúÀà(the next-deriv ......

java³öʾ»°ºÍµ÷ÓÃ˳Ðò


----------------------------------------------------
±¾ÎÄת×Ô£º
http://blog.sina.com.cn/s/blog_477daa680100hf1q.html
¸Ðл×÷Õß
----------------------------------------------------
¹æÂÉÊÇÕâÑùµÄ£º
ÈκÎÒ»¸öÀ࣬ÔÚÖ´ÐÐÒ»¸ö·½·¨Ç°±ØÐëÒªÏÈ°²´úÂëµÄ˳Ðò³õʼ»¯ËùÓеľ²Ì¬¿é£¬È»ºóµ÷ÓÃmainº¯Êý£¬
ÔÚÉú³ÉÒ»¸ö ......

ºÚÝ®JavaÓ¦Óÿª·¢»·¾³

ÉèÖà win xp/win 7 µÄºÚÝ®JavaµÄ¿ª·¢»·¾³µÄ²½ÖèÈçÏ£º
1. BlackBerryÓ¦Óÿª·¢»ùÓÚJava£¬Ê×ÏÈÐèÒªJDK £¨6.0ÒÔÉϵİ汾£©
ÏÂÔØ×îÐÂJDK
ÏÂÔØÍêºóË«»÷°²×°¼´¿É¡£
2. ÏÂÔØBlackBerry SDK£¬ÕâÀïÓÐÁ½ÖÖÑ¡Ôñ£º BlackBerry JDE, BlackBerry Java Plug-in with Eclipse
2.1 BlackBerry JDEÊÇRIM×ÔÖ÷¿ª·¢µÄIDE
ÏÂÔØ BlackBerry J ......

¹úÍâjavaÍøÕ¾´óÈ«

¹úÍâjavaÍøÕ¾´óÈ«
http://www.javaalmanac.com- Java¿ª·¢ÕßÄê¼øÒ»ÊéµÄÔÚÏß°æ±¾. ÒªÏë¿ìËٲ鵽ijÖÖJava¼¼ÇɵÄÓ÷¨¼°Ê¾Àý´úÂë, ÕâÊÇÒ»¸ö²»´íµÄÈ¥´¦.
http://www.onjava.com - O'ReillyµÄJavaÍøÕ¾. ÿÖܶ¼ÓÐÐÂÎÄÕÂ.
http://java.sun.com - ¹Ù·½µÄJava¿ª·¢ÕßÍøÕ¾ - ÿÖܶ¼ÓÐÐÂÎÄÕ·¢±í.
http://www.developer.com/java - ......

Java ʵÏÖÎļþ·Ö¸îºÏ²¢µÄ´úÂë

import java.io.*;
class Fen{
String fileName;
int size;
Fen(String fileName,String size){
this.fileName = fileName;
this.size = Integer.parseInt(size)*1024;
}
public void cut()throws Exception{
int maxx = 0;
File inFile = new File(fileName);
int fileLength = (int)inFile.length(); //È¡µÃÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ