C#µ½Java byteÀàÐͳåÍ»µÄ½â¾ö
	
    
    
	×î½üÒª¸Äдһ¸öºËÐļÓÃÜÈÏÖ¤À࣬´ÓC#¸Äд³ÉJava¡£
·¢ÏÖÔÚµ÷ÊÔʱ£¬¼ÓÃܵÄÊý¾ÝÎÞÂÛÈçºÎÒ²¶Ô²»ÉÏ¡£
¾¹ý¸ú×Ù£¬·¢ÏÖÎÊÌâ³öÔÚC#ºÍJava byteÀàÐ͵ÄÇø±ðÉÏ£ºÔÚC#Àï byteÀàÐÍÊÇÎÞ·ûºÅµÄ£¬¶øJavaÀïÊÇÓзûºÅµÄ£¬ËùÒÔC#ÀïµÄ129µ½JavaÀï¾Í³ÉÁ˸ºÊý¡£
·¢ÏÖÁËÎÊÌ⣬½â¾ö¾Í±È½ÏÈÝÒ×ÁË£¬Õë¶ÔJavaµÄbyte£¬²ÉÓÃIntÀ´½øÐд洢¡£
ͨ¹ýÈçÏ´úÂë´Óbyteµ½int½øÐÐת»»£º
	/**
	 * from byte to int, because of byte in java is signed
	 */
	private static int toInt(int b) {
		return b >= 0 ? (int)b : (int)(b + 256);
	} 
¶ÔÓÚÏÂÃæC#µÄ´úÂ룺
		private static AuthenticationTicket fromByteArray(byte[] buf)
		{
			MemoryStream ms = new MemoryStream(buf);
			BinaryReader reader = new BinaryReader(ms);
			short version = reader.ReadInt16();
			short scope = reader.ReadInt16();
			int key = reader.ReadInt32();
		} 
¸ÄдΪÈçÏÂÐÎʽ£¬Ï൱ÓÚÖØÐÂʵÏÖBinaryReaderµÄReadInt16ºÍReadInt32·½·¨¡£
	private static AuthenticationTicket fromByteArray(int[] bufInt)
	{       	
		int version = readInt16(bufInt);
		int scope = readInt16(bufInt);
		long key = readInt32(bufInt);	
	}
	 
	 private static int readInt16(int[] bufInt) {
		 int i = 0; 
		 for(int j = 0; j < 2; readArrayIndex++, j++) {
				i += bufInt[readArrayIndex] << (j << 3);
		 }
		 return i;
	 }
	 private static long readInt32(int[] bufInt) {
		 long i = 0; 
		 for(int j = 0; j < 4; readArrayIndex++, j++) {
				i += bufInt[readArrayIndex] << (j << 3);
		 }
		 return i;
	 } 
ÉÏÃæµÄÀý×Ó˵Ã÷£¬c#ºÍJavaËäÈ»·Ç³£ÏàÏñ£¬µ«ÊÇһЩ¹Ø¼üϸ½ÚµÄ²»Í¬ÊÇÐèÒª×Ðϸ¿¼Âǵġ£
    
     
	
	
    
    
	Ïà¹ØÎĵµ£º
        
    
    Ò»¸öÈí¼þÉè¼ÆµÄºÃ»µ£¬ÎÒÏëºÜ´ó³Ì¶ÈÉÏÈ¡¾öÓÚËüµÄÕûÌå¼Ü¹¹£¬¶øÕâ¸öÕûÌå¼Ü¹¹Æäʵ¾ÍÊÇÄã¶ÔÕû¸öºê¹ÛÉÌÒµÒµÎñµÄ³éÏó¿ò¼Ü£¬µ±´ú±íÒµÎñÂß¼µÄ¸ß²ã³éÏó²ã½á¹¹ ºÏÀíʱ£¬Äãµ×²ãµÄ¾ßÌåʵÏÖÐèÒª¿¼Âǵľͽö½öÊÇһЩËã·¨ºÍһЩ¾ßÌåµÄÒµÎñʵÏÖÁË¡£µ±ÄãÐèÒªÔÙ¿ª·¢ÁíÒ»¸öÏà½üµÄÏîĿʱ£¬ÄãÒÔǰµÄ³éÏó²ã˵²»¶¨»¹¿ÉÒÔÔÙ´ÎÀûÓÃ ÄØ£¬Ãæ¶Ô¶ÔÏóµÄÉè¼Æ ......
	
    
        
    
    ¹Ø¼ü×Ö: µ×²ãÊý¾Ý Ãû´Ê½âÊÍ£º ²¹Â룺1 ÔÚ¼ÆËã»úϵͳÖУ¬ÊýÖµÒ»ÂÉÓв¹ÂëÀ´±íʾ(´æ´¢). ʹÓò¹Âë,¿ÉÒÔ½«·ûºÅλºÍÆäËûλͳһ´¦Àí;ͬʱ,¼õ·¨Ò²¿É°´¼Ó·¨À´´¦Àí.ÁíÍâ,Á½¸öÓò¹Âë±íʾµÄÊý¾ÝÏà¼Óʱºò,Èç¹û×î¸ßλ(·ûºÅλ)ÓнøÎ»,Ôò½øÎ¥±»ÉáÆú. 2 ²¹ÂëÓëÔÂëµÄת»»¹ý³Ì¼¸ºõÊÇÏàͬµÄ ÊýÖµµÄ²¹Âë±íʾҲ·ÖÁ½ÖÖÇé¿ö£º £¨1£©ÕýÊýµÄ²¹Âë:ÓëÔ ......
	
    
        
    
    /*
* GetMacAddress .java
*
* description:get Mac addreess
*
* @author hadeslee
*
* Created on 2007-9-27, 9:11:15
*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package test2;  
import java.io.BufferedReader;  
import java.io.IO ......
	
    
        
    
    package stone;
public class PrimerNumber {
	public static void main(String[] args) {
		int MAX_NUMBER = 100;
		boolean[] notPrimer= new boolean[MAX_NUMBER];
		for(int i=2;i<=MAX_NUMBER;i++){
			if(!notPrimer[i-1]){
				for(int j=2*i;j<=MAX_NUMBER;j++){
					if(j%i==0) notPrimer[j-1]=tr ......
	
    
        
    
            ÎÒÃÇÎªÊ²Ã´ÒªÈ¥ÃæÊÔ ? ÃæÊÔµÄÄ¿µÄÊÇʲô ? 
        ÃæÊÔÒª½â¾öÄöÎÊÌâ ? 
  
Ò»¡¢ÃæÊÔµÄÄ¿µÄ 
¶þ¡¢ÃæÊÔǰµÄ×¼±¸ 
Èý¡¢ÃæÊÔ³£¼ûÎÊÌâ½â´ð 
      A¡¢ÏîÄ¿¾Àí³£¼ûÎÊÌâ 
     B ......