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

socketͨÐÅjava»òc#ÖÐÎÄÂÒÂëÎÊÌâ

C#ÖÐÏÔʾÖÐÎÄ£º
¡¾
·¢ËÍÊý¾Ý£º  
  string   sReturnData   =   "ÄãºÃ";  
  Byte[]  
bReturnData   =   Encoding.ASCII.GetBytes(sReturnData.ToCharArray());  
 
m_sktSession.Send(bReturnData); 
¡¾½«³öÏÖÂÒÂë¡¿
¡¿ 
½â¾ö·½°¸£º
±àÂëÓÃutf-8  
  string   sReturnData   =   "ÄãºÃ";  
  Byte[]  
bReturnData   =   UTF8Encoding.UTF8.GetBytes(sReturnData);  
  ½âÂëÒ²Óà  
utf-8  
  string   sReturnData   =  
UTF8Encoding.UTF8.GetString(sReturnData)
javaÖÐÏÔʾÖÐÎÄ£º
 ¡¾
os.write(temp.getBytes("ISO-8859-1"));
¡¾½«³öÏÖÂÒÂë¡¿
¡¿
½â¾ö·½°¸£º
os.write(temp.getBytes("UTF-8"));


Ïà¹ØÎĵµ£º

domino java ´úÀíµ÷ÓÃÊÜÏÞÖÆÀà






  ÔÚDOMINOÖÐʹÓÃHibernateʱ£¬»á³öÏÖÒÔϵĴíÎó£º
ÎÊÌâÊÇÓÉÓÚdomino jre µÄĬÈÏ°²È«²»Ö§³ÖReflectPermission "suppressAccessChecks";
ÔÚDOMINO JVMµÄ°²È«²ßÂÔÎļþÖмÓÈë
permission java.lang.reflect.ReflectPermission
" ......

java¼Ì³ÐÎÊÌâ ¾­³£Óöµ½±£´æÏÂÀ´

import java.util.ArrayList;
import java.util.HashMap;

public class Client {

/**
* @param args
*/
public static void main(String[] args) {
test1();
System.out.println("==================================");
test2(); ......

Java¸ß¼¶ÌØÐÔ 1

1.¾²Ì¬µ¼È룺
¾²Ì¬µ¼ÈëÊÇJDK1.5ºóмӵŦÄÜ£¬Ò»°ã²»Ôõô³£Ó㬺ܼòµ¥¸øÄã¾Ù¸öÀý×ÓÄã¾ÍÄÜÃ÷°×ÁË£¬¿´Õâ¶Î´úÂ룺
import static java.lang.System.out;//µ¼Èëjava.lang°üϵÄSystemÀàµÄ¾²Ì¬·½·¨out;
public class HelloWorld{
public static void main(String[] args){
out.print("Hello World!");//¼ÈÊÇÔÚÕ ......

·¢ÏÖJavaÐéÄâ»úÄÚ´æй¶ÎÊÌâ

¡¾IT168 Îĵµ
¡¿ÄÚ´æ
й¶ÎÊÌâ¶ÔÓÚ³ÌÐòÀ´Ëµ£¬ÊÇÒ»¸öºÜÄÑ·¢ÏÖ£¬²¢ÇÒÈÝÒ×ÒýÆðÑÏÖØÔÖº¦µÄÊÂÇé¡£
JavaÒ»Ö±ÒÔÆäÀ¬»ø»ØÊÕ»úÖÆΪ×ÔºÀ£¬ÄÇÊÇ·ñÕâÖÖ»úÖƾÍÊÇÍêÃÀµÄÄØ¡£
¡¡¡¡³£¹æÀí½âÉÏ£¬JavaµÄÄÚ´æ
¹ÜÀí»úÖÆÊǽ«¾Ö²¿±äÁ¿±£´æÔÚ¶ÑÖУ¬µ±±äÁ¿µÄ×÷ÓÃÓò½áÊøÖ®ºó£¬¸Ã±äÁ¿ËùÕ¼ÓõÄ
ÄÚÈݻᱻ×Ô¶¯»ØÊÕ¡£²»ÐèÒª×öÈκÎÌØÊâµÄ´¦Àí¡£±ÈÈçÏ ......

·ÖÒ³¹¦ÄܵÄjavaʵÏÖ

       ×î½ü×öÒ»¸öÏîÄ¿£¬ÒªÓõ½·ÖÒ³¹¦ÄÜ£¬²Î¿¼Á˺ܶ෽·¨£¬ÓеIJ»ºÏÊÊ£¬ÓеIJ»Ï²»¶£¬ÓÚÊÇ×Ô¼ºÔÚËûÃǵĻù´¡ÉÏÕûÁËÒ»¸ö£»Ë¼Â·ÊÇÕâÑùµÄ£ºÏÈ°ÑÐèÒª·ÖÒ³µÄÊý¾Ý»òÊǼǼ¶¼²éѯ³öÀ´ ´æÈëÒ»¸ö¼¯ºÏÀàÀïÈçList»òÊÇVector£¬È»ºóÀûÓÃÆäsublist(int findex,int eindex)·½·¨£¬»ñÈ¡ÐèÒª·ÖÒ³µÄÊý¾Ý»ò¼Ç¼,¹ØÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ