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

Java ×Ö·û¼¯±àÂë

Ê×ÏÈ¿´Çå³þ¼¸ÖÖ³£ÓõÄ×Ö·û¼¯±àÂë(javaÓïÑÔÊDzÉÓÃunicode×Ö·û¼¯±àÂëÀ´±íʾ×Ö·ûÓë×Ö·û´®µÄ)£º
¡¡¡¡ASCII(American Standard Code for Information Interchange£¬ÃÀ¹úÐÅÏ¢»¥»»±ê×¼´úÂë)£¬ÊÇ»ùÓÚ³£ÓõÄÓ¢ÎÄ×Ö·ûµÄÒ»Ì×µçÄÔ±àÂëϵͳ¡£ÎÒÃÇÖªµÀÓ¢ÎÄÖо­³£Ê¹ÓõÄ×Ö·û¡¢Êý×Ö·ûºÅ±»¼ÆËã»ú´¦Àíʱ¶¼ÊÇÒÔ¶þ½øÖÆÂëµÄÐÎʽ³öÏֵġ£ÕâÖÖ¶þ½øÖÆÂëµÄ¼¯ºÏ¾ÍÊÇËùνµÄASCIIÂ롣ÿһ¸öASCIIÂëÓëÒ»¸ö8루bit£©¶þ½øÖÆÊý¶ÔÓ¦¡£Æä×î¸ßλÊÇ0£¬ÏàÓ¦µÄÊ®½øÖÆÊýÊÇ0-127¡£È磬Êý×Ö“0”µÄ±àÂëÓÃÊ®½øÖÆÊý±íʾ¾ÍÊÇ48¡£ÁíÓÐ128¸öÀ©Õ¹µÄASCIIÂ룬×î¸ßλ¶¼ÊÇ1£¬ÓÉһЩÖƱí·ûºÍÆäËü·ûºÅ×é³É¡£ASCIIÊÇÏÖ½ñ×îͨÓõĵ¥×Ö½Ú±àÂëϵͳ¡£
¡¡¡¡GB2312£ºGB2312ÂëÊÇÖлªÈËÃñ¹²ºÍ¹ú¹ú¼Òºº×ÖÐÅÏ¢½»»»ÓñàÂ룬ȫ³Æ¡¶ÐÅÏ¢½»»»Óúº×Ö±àÂë×Ö·û¼¯£­»ù±¾¼¯¡·¡£Ö÷ÒªÓÃÓÚ¸øÿһ¸öÖÐÎÄ×Ö·ûÖ¸¶¨ÏàÓ¦µÄÊý×Ö£¬Ò²¾ÍÊǽøÐбàÂë¡£Ò»¸öÖÐÎÄ×Ö·ûÓÃÁ½¸ö×Ö½ÚµÄÊý×ÖÀ´±íʾ£¬ÎªÁ˺ÍASCIIÂëÓÐËùÇø±ð£¬½«ÖÐÎÄ×Ö·ûÿһ¸ö×Ö½ÚµÄ×î¸ßλÖö¼ÓÃ1À´±íʾ¡£
¡¡¡¡GBK£ºÎªÁ˶Ըü¶àµÄ×Ö·û½øÐбàÂ룬¹ú¼ÒÓÖ·¢²¼ÁËеıàÂëϵͳGBK(GBKµÄKÊÇ“À©Õ¹”µÄººÓïÆ´ÒôµÚÒ»¸ö×Öĸ)¡£ÔÚеıàÂëϵͳÀ³ýÁËÍêÈ«¼æÈÝGB2312 Í⣬»¹¶Ô·±ÌåÖÐÎÄ¡¢Ò»Ð©²»³£Óõĺº×ÖºÍÐí¶à·ûºÅ½øÐÐÁ˱àÂë¡£
¡¡¡¡ISO-8859-1£ºÊÇÎ÷·½¹ú¼ÒËùʹÓõÄ×Ö·û±àÂ뼯£¬ÊÇÒ»ÖÖµ¥×Ö½ÚµÄ×Ö·û¼¯ £¬¶øÓ¢ÎÄʵ¼ÊÉÏÖ»ÓÃÁËÆäÖÐÊý×ÖСÓÚ128µÄ²¿·Ö¡£
¡¡¡¡Unicode£ºÕâÊÇÒ»ÖÖͨÓõÄ×Ö·û¼¯£¬¶ÔËùÓÐÓïÑÔµÄÎÄ×Ö½øÐÐÁËͳһ±àÂ룬¶Ôÿһ¸ö×Ö·û¶¼ÓÃ2¸ö×Ö½ÚÀ´±íʾ£¬¶ÔÓÚÓ¢ÎÄ×Ö·û²ÉÈ¡Ç°Ãæ¼Ó“0”×ֽڵIJßÂÔʵÏֵȳ¤¼æÈÝ¡£Èç “a” µÄASCIIÂëΪ0x61£¬UNICODE¾ÍΪ0x00£¬0x61¡£
¡¡¡¡UTF-8£ºEight-bit UCS Transformation Format£¬(UCS£¬Universal Character Set£¬Í¨ÓÃ×Ö·û¼¯£¬UCS ÊÇËùÓÐÆäËû×Ö·û¼¯±ê×¼µÄÒ»¸ö³¬¼¯)¡£Ò»¸ö7λµÄASCIIÂëÖµ£¬¶ÔÓ¦µÄUTFÂëÊÇÒ»¸ö×Ö½Ú¡£Èç¹û×Ö·ûÊÇ0x0000£¬»òÔÚ0x0080Óë0x007fÖ®¼ä£¬¶ÔÓ¦µÄUTFÂëÊÇÁ½¸ö×Ö½Ú£¬Èç¹û×Ö·ûÔÚ0x0800Óë0xffffÖ®¼ä£¬¶ÔÓ¦µÄUTFÂëÊÇÈý¸ö×Ö½Ú¡£
¡¡¡¡ÎÒÃÇÔËÐÐjava³ÌÐòʱ£¬JVMÓÐ×Ô¼ºËùÖ§³ÖµÄ±àÂëÖÖÀ࣬ÓÃÒÔÏ´úÂë¿ÉÒÔ¿´µ½£º
Map m = Charset.availableCharsets();
   Set names = m.keySet();
   Iterator it = names.iterator();
   while (it.hasNext())
   {
    System.out.println(it.next());
   }
¡¡¡¡ È»ºó¿ÉÒÔͨ¹ýÒÔÏ´úÂë¿´µ½ÎÒ


Ïà¹ØÎĵµ£º

Javaͬ²½»úÖÆ£ºsychronized¶Ô´úÂëÓ°Ïì

ת £ºhttp://kuru.javaeye.com/blog/288467
Java¶Ô¶àÏ̵߳ÄÖ§³ÖÓëͬ²½»úÖÆÉîÊÜ´ó¼ÒµÄϲ°®£¬Ëƺõ¿´ÆðÀ´Ê¹ÓÃÁËsynchronized¹Ø¼ü×־ͿÉÒÔÇáËɵؽâ¾ö¶àÏ̹߳²ÏíÊý¾Ýͬ²½ÎÊÌâ¡£µ½µ×ÈçºÎ£¿¨D¨D»¹µÃ¶Ôsynchronized¹Ø¼ü×ÖµÄ×÷ÓýøÐÐÉîÈëÁ˽â²Å¿É¶¨ÂÛ¡£ ×ܵÄ˵À´£¬synchronized¹Ø¼ü×Ö¿ÉÒÔ×÷Ϊº¯ÊýµÄÐÞÊηû£¬Ò²¿É×÷Ϊº¯ÊýÄÚµÄÓï¾ä£¬Ò ......

javaʵÏÖµÄFTPÉÏ´«ÏÂÔØ¿Í»§¶Ë

org.apache.commons.net.ftp.*ÖеÄFTPClientÀàʵÏÖµÄFTPÉÏ´«ÏÂÔع¦ÄÜ£º
Ðèµ¼ÈëApacheµÄcommos-netµÄjar°ü£¬Èôµ¼ÈëµÄÊÇ1.4°æ±¾µÄ°ü£¬ÔòFTPFile[] fileList = ftpClient.listFiles()µÄÖ´Ðйý³ÌÖпÉÄܻᱨ´í£¬´Ëʱ¸ü»»µ¼Èë2.0°æ±¾µÄjar°ü£¬ÎÊÌâ¼´¿É½â¾ö¡£
´úÂëÈçÏ£º
package com.java.ftp;
import java.io.File;
import ......

JavaµÄAWT

AWTÊÇJavaÖÐÖ§³ÖͼÐλ¯Óû§½çÃæGUIÉè¼ÆµÄÒ»¸ö¹¤¾ß¼¯¡£AWTµÄAPIÊǶÀÁ¢ÓÚƽ̨µÄ£¬µ«Éè¼Æ³öÀ´µÄ½çÃæÔÚ¸÷ÖÖƽ̨µÄ·ç¸ñ²»Í¬£¬ÀûÓÃAPIÖи÷ÖÖÀàÔÚÌض¨Æ½Ì¨ÏµĶԵÈ×é¼þpeersÌṩ¾ßÌåƽ̨ϵÄʵÏÖ¡£
Óû½¨Á¢Ò»¸öGUIÊ×ÏÈÈ·¶¨ËùÓõÄ×é¼þ¼°Æä²¼¾Ö£¬È»ºóʵÏÖÆäʼþµÄÏìÓ¦¡£×é¼þµÄÀàÐÍÓжàÖÖ£¬Èç³£ÓõÄButton¡¢CheckBoxµÈ£¬¾ùΪComponent ......

JAVAðÅÝÅÅÐòËã·¨µÄ¼¸ÖÖʵÏÖ·½·¨

±¾Îijö×Ô “ÌÆ´óÀÏʦ” ²©¿Í£¬ÇëÎñ±Ø±£Áô´Ë³ö´¦http://tscjsj.blog.51cto.com/412451/84561
public class Bubble {
// ðÅÝÅÅÐòº¯Êý1
public static void bubbleSort1(Comparable []data){

int position,scan;
Comparable temp;
for(position = data.length-1;position>=0;position--){
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ