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

ÌáÈ¡ºº×ÖÆ´ÒôÊ××Öĸ£¨Java°æ£©

package info.gnuhpc;
/**
* @author gnuhpc email: warmbupt@gmail.com blog: http://gnuhpc.info
* @date 2010-1-22
* @bugs ²»Ö§³Ö¶àÒô×Ö´¦Àí
*/
public class PinyinConv {
// ¼òÌåÖÐÎĵıàÂ뷶Χ´ÓB0A1£¨45217£©Ò»Ö±µ½F7FE£¨63486£©
private static int BEGIN = 45217;
private static int END = 63486;
// °´ÕÕÉùĸ±íʾ£¬Õâ¸ö±íÊÇÔÚGB2312ÖеijöÏֵĵÚÒ»¸öºº×Ö£¬Ò²¾ÍÊÇ˵“°¡”ÊÇ´ú±íÊ××ÖĸaµÄµÚÒ»¸öºº×Ö¡£
// i, u, v¶¼²»×öÉùĸ, ×Ô¶¨¹æÔò¸úËæÇ°ÃæµÄ×Öĸ
private static char[] chartable = { '°¡', '°Å', '²Á', '´î', '¶ê', '·¢', '¸Á', '¹þ',
'¹þ', '»÷', '¿¦', 'À¬', 'Âè', 'ÄÃ', 'Ŷ', 'ž', 'ÆÚ', 'È»', 'Èö', 'Ëú', 'Ëú',
'Ëú', 'ÍÚ', 'Îô', 'ѹ', 'ÔÑ', };
// ¶þÊ®Áù¸ö×ÖĸÇø¼ä¶ÔÓ¦¶þÊ®Æ߸ö¶Ëµã
// GB2312Â뺺×ÖÇø¼äÊ®½øÖƱíʾ
private static int[] table = new int[27];
// ¶ÔÓ¦Ê××ÖĸÇø¼ä±í
private static char[] initialtable = { 'a', 'b', 'c', 'd', 'e', 'f', 'g',
'h', 'h', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
't', 't', 'w', 'x', 'y', 'z', };
// ³õʼ»¯
static {
for (int i = 0; i < 26; i++) {
table[i] = gbValue(chartable[i]);// µÃµ½GB2312ÂëµÄÊ××ÖĸÇø¼ä¶Ëµã±í£¬Ê®½øÖÆ¡£
}
table[26] = END;// Çø¼ä±í½áβ
}
// ------------------------public·½·¨Çø------------------------
/**
* ¸ù¾ÝÒ»¸ö°üº¬ºº×ÖµÄ×Ö·û´®·µ»ØÒ»¸öºº×ÖÆ´ÒôÊ××ÖĸµÄ×Ö·û´® ×îÖØÒªµÄÒ»¸ö·½·¨£¬Ë¼Â·ÈçÏ£ºÒ»¸ö¸ö×Ö·û¶ÁÈë¡¢Åжϡ¢Êä³ö
*/
public static String cn2py(String SourceStr) {
String Result = "";
int StrLength = SourceStr.length();
int i;
try {
for (i = 0; i < StrLength; i++) {
Result += Char2Initial(SourceStr.charAt(i));
}
} catch (Exception e) {
Result = "";
}
return Result;
}
// ------------------------private·½·¨Çø------------------------
/**
* ÊäÈë×Ö·û,µÃµ½ËûµÄÉùĸ,Ó¢ÎÄ×Öĸ·µ»Ø¶ÔÓ¦µÄ´óд×Öĸ,ÆäË


Ïà¹ØÎĵµ£º

javaÖÐʹÓÃsqliteÊý¾Ý¿â

sqliteÊý¾Ý¿âµÚÈý·½javaÀ©Õ¹°üÏÂÔصØÖ·£ºhttp://www.zentus.com/sqlitejdbc/
ÓÐ2¸ö°ü£¬Ò»¸öÊÇnested£¨Ç¶ÈëʽµÄ£©£¬Ò»¸öÊÇnative(±¾µØµÄ)¡£
Çø±ðÔÚÓÚ:nested ²»ÐèÒª¶îÍâµÄdllÎļþ£¬µ«ÊÇËÙ¶ÈÂý¡£nativeÐèÒªÒ»¸ö¶îÍâµÄdllÎļþ£¬ËٶȺܿ졣
 1.ʹÓÃnested°ü£ºsqlitejdbc-v037-nested.jar
java´úÂ룺
java ´úÂë
packa ......

javaÖÐThreadÏß³ÌÖÐµÄ start£¨£©ºÍrun£¨£©·½·¨µÄÇø±ð


Á½ÖÖ½¨Á¢Ï̶߳ÔÏóµÄ·½·¨£º
    Extends Thread
    implement Runnable
   ÕâÁ½ÖÖ·½·¨¶¼¿ÉÒÔ´´½¨Ò»¸öÏ̶߳ÔÏó£¬
public class TestThread {
    public static void main(String arg[]){
        newThread thread = new ne ......

JAVAÔËÐл·¾³ÅäÖÃ

Èç¹ûÒªÔËÐÐjava³ÌÐò¾Í±ØÐë°²×°JRE£¨Java Runtime Environment)
Èç¹ûÒª¿ª·¢java³ÌÐò¾Í±ØÐë°²×°JDK£¨Java Develope Kit)
£¬×¢ÒâJDKÖаüÀ¨ÁËJRE¡£
°²×°Íê³Éºó£¬ÐèÒªÐÞ¸Äϵͳ»·¾³±äÁ¿PATH·½·¨£¬²ÅÄÜʹϵͳ֪µÀµ½ÄÄÀïÈ¥ÕÒjavacµÈÏà¹Ø±àÒëÐèÒªµÄÃüÁ·½·¨ÈçÏ£º
1¡¢ÓÒ¼üµ¥»÷ÎҵĵçÄÔ£¬Ñ¡‘ÊôÐÔ’²Ëµ¥£¬ÔÚµ¯³öµÄ¶Ô» ......

JAVA WEBѧϰ±Ê¼Ç(ËÄ)£­Servlet¹ýÂËÆ÷

Ò»¡¢Servlet¹ýÂËÆ÷µÄ¸ÅÄ
***************************************************************************************
Servlet¹ýÂËÆ÷ÊÇÔÚJava Servlet¹æ·¶2.3Öж¨ÒåµÄ£¬ËüÄܹ»¶ÔServletÈÝÆ÷µÄÇëÇóºÍÏìÓ¦¶ÔÏó½øÐмì²éºÍÐ޸ġ£¡¡¡¡¡¡
Servlet¹ýÂËÆ÷±¾Éí²¢²»²úÉúÇëÇóºÍÏìÓ¦¶ÔÏó£¬ËüÖ»ÄÜÌṩ¹ýÂË×÷Óá£Servlet¹ýÆÚÄÜ ......

java°üµ¼Èë»úÖƵÄÑо¿

¡¡¡¡javaÖÐÓÐÁ½ÖÖ°üµÄµ¼Èë»úÖÆ£¬×ܽáÈçÏ£º
¡¡¡¡µ¥ÀàÐ͵¼Èë(single-type-import)£¬ÀýÈçimport java.io.File;
¡¡¡¡°´ÐèÀàÐ͵¼Èë(type-import-on-demand)£¬ÀýÈç import java.io.*;
¡¡¡¡¹ØÓÚÕâÁ½ÖÖµ¼ÈëÀàÐÍ´ó¼Ò¸÷ÓÐËù°®£¬ÖÚ˵·×ç¡¡£ÕâÀï·ÖÎöÒ»ÏÂÕâÁ½ÖÖµ¼ÈëÀàÐ͵ĴóÖ¹¤×÷Ô­Àí¹©´ó¼Ò²Î¿¼¡£
¡¡¡¡µ¥ÀàÐ͵¼Èë±È½ÏºÃÀí½â£¬½ö½öµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ