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

JavaÓïÑÔÈçºÎ·ÃÎʲ»Í¬×Ö·û¼¯µÄOracleÊý¾Ý

Ò»¡¢java·ÃÎÊÖÐÎÄOracleÊý¾Ý¿âÉÏÁ¬½ÓµÄUS7ASCIIÊý¾Ý¿â
1¡¢¶Á·½·¨
public String convertLink_DB(String s) {
  if(s != null){
   try{
    byte[] b = s.getBytes();
    for(int i=0; i<b.length; i++){
     b[i] = (byte)(b[i]-128);
    }
    return new String(b, "gb2312");
   }catch(Exception e){
    e.printStackTrace();
    return "";
   }
  }
  return "";
 }
2¡¢Ð´·½·¨
public String convertLink_DB(String s) {
  if(s != null){
   try{
    byte[] b = s.getBytes();
    for(int i=0; i<b.length; i++){
     b[i] = (byte)(b[i]+128);
    }
    return new String(b, "gb2312");
   }catch(Exception e){
    e.printStackTrace();
    return "";
   }
  }
  return "";
 }
Ò»¡¢java·ÃÎÊÓ¢ÎÄOracleÊý¾Ý¿â
1¡¢¶Á
new String(s, "gb2312");
2¡¢Ð´
new String(s, "8859-1");


Ïà¹ØÎĵµ£º

JAVA»ù´¡£­£­JAVAÖеķ´Éä»úÖÆÏê½â

תÌù£ºhttp://java.ccidnet.com/art/3539/20070924/1222147_1.html
 
JAVA·´Éä»úÖÆ
    JAVA·´Éä»úÖÆÊÇÔÚÔËÐÐ״̬ÖУ¬¶ÔÓÚÈÎÒâÒ»¸öÀ࣬¶¼Äܹ»ÖªµÀÕâ¸öÀàµÄËùÓÐÊôÐԺͷ½·¨£»¶ÔÓÚÈÎÒâÒ»¸ö¶ÔÏ󣬶¼Äܹ»µ÷ÓÃËüµÄÈÎÒâÒ»¸ö·½·¨£»ÕâÖÖ¶¯Ì¬»ñÈ¡µÄÐÅÏ¢ÒÔ¼°¶¯Ì¬µ÷ÓöÔÏóµÄ·½·¨µÄ¹¦ÄܳÆΪjavaÓïÑԵķ´Éä»ú ......

javaÖÐthisºÍsuperµÄÓ÷¨

thisµÄÓ÷¨ÔÚjavaÖдóÌå¿ÉÒÔ·ÖΪ3ÖÖ£º
 //1.ÆÕͨµÄÖ±½ÓÒýÓÃ
class test {
   private int x,y;
   public test(int x,int y) {
       setX(x);//Ò²¿ÉÒÔдΪthis.setX(x);ÕâÖÖÇé¿öÏÂthis¿ÉÒÔÊ¡ÂÔ.
   }
}
//2.·½·¨ÖеÄij¸öÐβÎÃûÓ뵱ǰ¶ÔÏóµÄÄ ......

javaµÝ¹éʵÏÖµÄÃÔ¹¬ÓÎÏ·

public class Migong {
 
    private int gard[][]={  {1,1,1,1,0,1,1,1},
                         {0,0,0,1,1,1,1,1},
       ......

JAVA³£ÓÃÊýѧÀà·½·¨


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

JAVA²Ù×÷Îļþ£¨´´½¨¡¢É¾³ý¡¢¸´ÖÆ¡¢¼ôÇУ©

package fileTest;
import java.io.*;
public class FileOperate {
   public FileOperate() {
   }
  
   public static void main(String args[]){
     //  newFolder("D:/100");
       moveFile("e:/978 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ