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

JAVA±àÂë»úÖÆ

 javaÖÐËùÓж¼ÊÇunicodeµÄ±àÂ룬¿ÖÅ´ó¼Ò¶¼Çå³þ£¬µ«ÊÇÕâ¾ßÌåÊÇÄÄÀïµÄ±àÂë¡£ÔÚһ̨ÖÐÎÄwindows²Ù×÷ϵͳ£¨GBK£©£¬»òÓ¢ÎĵÄlinux²Ù×÷ϵͳÏ£¨ISO-8859-1£©Ï£¬ÕâЩ±àÂëÊÇÈçºÎת»»µÄ¡£JAVAÖеÄStringÀàµÄgetBytes()·½·¨ºÍStringÀàµÄÖ¸¶¨±àÂ뷽ʽµÄ¹¹Ô캯ÊýÖеıàÂëÓÖÊÇÈçºÎÄØ£¿
ÕâÀïÎÒ²»×öÉîÈë½âÊÍ£¬Ö»ÊÇչʾһÏÂÕâЩ±àÂëת»»µÄÁ÷³Ì¡£
ÒÔwindowsÖÐÎIJÙ×÷ϵͳΪÀý£¬ÎÒÃDZàдºÃµÄjavaÎļþÒÔĬÈϱ¾µØ²Ù×÷ϵͳµÄ±àÂ뷽ʽ½øÐд洢£¨javaÔ´ÎļþºÍclassÎļþ£©£¬¼´GBK¡£
µ±jvmÐèÒªÔØÈëÏàÓ¦µÄÀàʱ£¬jvm½«GBK±àÂëµÄ×Ö·ûת»»Îªunicode×Ö½ÚÂ룬¼´jvmÖеÄ×Ö½ÚÂëÊÇunicodeµÄ¡£
ÒÔÉÏÁ½¸ö¹ý³Ìʵ¼ÊÉϲ»ÐèÒªÎÒÃDzÎÓ룬Òò´Ë¶ÔÓÚÈκÎƽ̨£¬ÎÒÃÇËùÒª²Ù×÷µÄÄ¿±ê¶¼ÊÇunicode±àÂëµÄ×Ö·û´®¡£
byte[] getBytes(code)
Õâ¸ö·½·¨Êǽ«unicode×Ö·û´®°´ÕÕcodeÖ¸¶¨µÄ±àÂ뷽ʽת»»Îª×Ö½ÚÊý×飬ÕâÀï»á³öÏÖתÂëÎÊÌ⣬Èçunicode-->iso-8859-1¡£Èç¹ûÊÇASCIIµÄ×Ö·û£¬Ôò²»»áÓÐÎÊÌ⣬µ«ÊÇÈç¹û³öÏÖºº×ÖµÄunicode£¬ÔòµÃµ½µÄiso±àÂë±ØÈ»ÊÇ?(63)
String(byte[],code)
°´ÕÕcodeÖ¸¶¨µÄ½âÂ뷽ʽ£¬½«byte[]×Ö½Ú×é½âÂëΪ¶ÔÓ¦±àÂ뷽ʽµÄ×Ö·û´®¡£
InternetÉÏ´«µÝµÄ×Ö½ÚÁ÷µÄ±àÂ붼ÊÇISO-8859-1µÄ£¬Òò´ËÒªÏë»Ö¸´µ½Ö®Ç°µÄºº×Ö×Ö·û´®ÐèÒª°´ÕÕÒÔϲ½Ö裺
String string = in.readLine();
byte[] b = string.getBytes("iso-8859-1");
new String£¨b,"gbk"£©;


Ïà¹ØÎĵµ£º

URI¡¢URL¡¢URNµÄÔ­Àí¡¢Çø±ð¼°JAVAµÄʵÏÖ

 
ʲôÊÇURI
WebÉÏ¿ÉÓõÄÿÖÖ×ÊÔ´ - HTMLÎĵµ¡¢Í¼Ïñ¡¢ÊÓƵƬ¶Î¡¢³ÌÐòµÈ - ÓÉÒ»¸öͨ¹ýͨ
ÓÃ×ÊÔ´±êÖ¾·û£¨Universal Resource Identifier, ¼ò³Æ"URI"£©½øÐж¨Î»¡£
URIÒ»°ãÓÉÈý²¿·Ö×é³É£º
·ÃÎÊ×ÊÔ´µÄÃüÃû»úÖÆ¡£
´æ·Å×ÊÔ´µÄÖ÷»úÃû¡£
×ÊÔ´×ÔÉíµÄÃû³Æ£¬ÓÉ·¾¶±íʾ¡£
¿¼ÂÇÏÂÃæµÄURI£¬Ëü±íʾÁ˵±Ç°µÄHTML ......

Java·ÃÎÊȨÏÞdzÎö

 Java·ÃÎÊȨÏÞÒ»¹²ÓÐËÄÖÖ£¬ËûÃÇÖ®¼äµÄ·ÃÎÊȨÏޱȽÏͨ¹ýÒÔÏÂÒ»×éÀý×ÓÀ´½âÊÍ
Àý×Ócode£ºModiferDemo.java
package com.glust.blog.j2se;
public class ModiferDemo{
  //ËÄÖÖ·ÃÎÊȨÏ޵ıäÁ¿£¨ÊôÐÔ£©
  private int a;
  int b;//friendly
  protected int c;
  public int d;
  ......

javaÖеÄÅÅÐò»ã×Ü

 JAVAÅÅÐò»ã×Ü ÊÕ²Ø
package com.softeem.jbs.lesson4;
import java.util.Random;
/**
 * ÅÅÐò²âÊÔÀà
 *
 * ÅÅÐòËã·¨µÄ·ÖÀàÈçÏ£º
 * 1.²åÈëÅÅÐò£¨Ö±½Ó²åÈëÅÅÐò¡¢ÕÛ°ë²åÈëÅÅÐò¡¢Ï£¶ûÅÅÐò£©£»
 * 2.½»»»ÅÅÐò£¨Ã°ÅÝÅÝÅÅÐò¡¢¿ìËÙÅÅÐò£©£»
 * 3.Ñ¡ÔñÅÅÐò£¨Ö±½ÓÑ¡ÔñÅÅÐò¡¢¶ÑÅÅÐò£ ......

javaʵÏÖµÄstack pop·½·¨Ð¡Ï¸½Ú

 Ç°Ð©Ìì±àС³ÌÐò£¬Ð´ÆäÖÐÓÐÒ»¸ö×Ô¼ºÊµÏÖµÄstackµÄpopÈçÏ£º
public class Stack<T>{
 
   private ArrayList<T>  list;
   public Stack(){
          list =  new ArrayList<T>();
}
    ......

dz̸Java´æ´¢¹ý³Ìµ÷ÓÃ(ת)


ÕâÀïΪ´ó¼Ò̸̸Java´æ´¢¹ý³Ìµ÷Óã¬ÎÒÃÇ¿ÉÒÔÀûÓÃJava´æ´¢¹ý³Ì¼ò»¯Êý¾Ý¿â²Ù×÷, ÀûÓÃJava´æ´¢¹ý³Ì¹µÍ¨SQL¡¢XML¡¢Java¡¢J2EEºÍWeb·þÎñ¡£
´´½¨ÐèÒªµÄ²âÊÔ±í:create table Test(tid varchar2(10),tname varchar2(10));
µÚÒ»ÖÖÇé¿ö£ºÎÞ·µ»ØÖµ.
create or replace procedure test_a(param1 in varchar2,param2 in varchar2)as ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ