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

java UnicodeÓëÖÐÎÄ»¥»»

static String string2Unicode(String s) {
try {
StringBuffer out = new StringBuffer("");
byte[] bytes = s.getBytes("unicode");
for (int i = 2; i < bytes.length - 1; i += 2) {
out.append("u");
String str = Integer.toHexString(bytes[i + 1] & 0xff);
for (int j = str.length(); j < 2; j++) {
out.append("0");
}
String str1 = Integer.toHexString(bytes[i] & 0xff);
out.append(str);
out.append(str1);
out.append(" ");
}
return out.toString().toUpperCase();
}
catch (UnsupportedEncodingException e) {
e.printStackTrace();
return null;
}
}

static String unicode2String(String unicodeStr){
StringBuffer sb = new StringBuffer();
String str[] = unicodeStr.toUpperCase().split("U");
for(int i=0;i


Ïà¹ØÎĵµ£º

¹ØÓÚjavaµÄ++ºÍ

public class JavaPlus {

public static void main(String[] args) {
int x = 5;
x++;// x = x + 1;//ºó¼Ó¼Ó
System.out.println(x);
x--;// x = x - 1;//ºó¼õ¼õ
System.out.println(x);
++x;// x = x + 1;//Ç°¼Ó¼Ó
Sys ......

javaÁ¬½Ó¸÷ÖÖÊý¾Ý¿âµÄÅäÖÃÎļþд·¨£¨×ª£©

²Î¿¼ÅäÖÃÎļþ
# ʾÀýÅäÖòο¼£¬º­¸Ç¼¸ºõËùÓеÄÖ÷Á÷Êý¾Ý¿â
############# OracleÊý¾Ý¿â ########################
#   Êý¾Ý¿âÇý¶¯Ãû
driver=oracle.jdbc.driver.OracleDriver
#   Êý¾Ý¿âURL(°üÀ¨¶Ë¿Ú£©
dburl=jdbc:oracle:thin:@127.0.0.1:1521:zvfdb
#   Êý¾Ý¿âÓû§Ãû
user=root
#& ......

Java·´Éä»úÖÆÉîÈëÑо¿

           
Java ·´ÉäÊÇJavaÓïÑÔµÄÒ»¸öºÜÖØÒªµÄÌØÕ÷£¬ËüʹµÃJava¾ßÌåÁË“¶¯Ì¬ÐÔ”¡£
 
ÔÚJavaÔËÐÐʱ»·¾³ÖУ¬¶ÔÓÚÈÎÒâÒ»¸öÀ࣬ÄÜ·ñÖªµÀÕâ¸öÀàÓÐÄÄЩÊôÐԺͷ½·¨£¿¶ÔÓÚÈÎÒâÒ»¸ö¶ÔÏó£¬ÄÜ·ñµ÷ÓÃËüµÄÈÎÒâÒ»¸ö·½·¨£¿´ð°¸Êǿ϶¨µÄ¡£ÕâÖÖ¶¯Ì¬»ñÈ¡ÀàµÄÐÅ ......

JAVA 運ÐÐcmd ÃüÁî

javaµÄRuntime.getRuntime().exec(commandStr)¿ÉÒÔµ÷ÓÃÖ´ÐÐcmdÖ¸Áî¡£
cmd /c xxÊÇÖ´ÐÐÍêxxÃüÁîºó¹Ø±ÕÃüÁî´°¿Ú¡£
cmd /k xxÊÇÖ´ÐÐÍêxxÃüÁîºó²»¹Ø±ÕÃüÁî´°¿Ú¡£
cmd /c start xx»á´ò¿ªÒ»¸öд°¿ÚºóÖ´ÐÐxxÖ¸Áԭ´°¿Ú»á¹Ø±Õ¡£
cmd /k start xx»á´ò¿ªÒ»¸öд°¿ÚºóÖ´ÐÐxxÖ¸Áԭ´°¿Ú²»»á¹Ø±Õ¡£
¿ÉÒÔÓÃcmd /?²é¿´°ïÖúÐÅÏ¢¡£ ......

JavaϵÁн̳ÌĿ¼±í

http://blog.csdn.net/silentbalanceyh/archive/2009/09/24/4587371.aspx
¡¾ÎªÁËÈöÁÕß¿´ÆðÀ´±È½ÏÓнṹ£¬ÎÒ×Ô¼ºÄâÁËÒ»·ÝÍêÕûµÄÌá¸Ù£¬¶øÇÒΪÁËʹµÃ¶ÁÕßÒ»±ßѧϰÀíÂÛÒ»±ßѧϰÏà¹Ø´úÂëÄÚÈÝ£¬ÀïÃæ90%µÄ´úÂëÎÒ¶¼ÌṩÁËÍêÕûµÄ´úÂëDemo£¬Ö±½Ó¼üÈë¹ýºóÓ¦¸Ã¾Í¿ÉÒÔÔËÐУ¬¶øÇÒÀïÃæËùÓеÄÖصãÎÒ¶¼±ê×¢³öÀ´ÁË£¬Ö÷ÒªÊÇ·½±ã¶ÁÕß²»»áÒÅ©µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ