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

JAVA¶ÁÈ¡txtÎļþ

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
/**
* @author dengshaohua
*/
public class ReadPhone {
/**
* ¶ÁÈ¡Êý¾Ý
*/
public void ReadData(){
try {
FileReader read = new FileReader("D:/data.txt");
BufferedReader br = new BufferedReader(read);
String row;
while((row = br.readLine())!=null){
System.out.println(row);
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e){
e.printStackTrace();
}
}
}

¶ÔͬһÐÐÖиô¿ªµÄ×Ö·ûµÄÇиî
String[] linePart = s1.split("\s+");


Ïà¹ØÎĵµ£º

java°Ñwordתhtml»òtxt

×î½üÏîÄ¿ÖÐÐèÒªÔÚÒ³ÃæÖÐÔ¤ÀÀwordÎļþ£¬Ëä˵word±¾Éí¾Í¿ÉÒÔÔÚÒ³ÃæÖдò¿ª£¬µ«ÊÇÓÐÁ½¸ö±×¶Ë£¬1ÊÇ¿É¿Í»§¶Ë±ØÐë°²×°word£¬ 2ÊÇ¿Í»§¶ËµÄ»·¾³ÒÔ¼°office°æ±¾ÓвîÒ죬»áÔì³ÉÔ¤ÀÀ²»Îȶ¨¡£ÔÚÍøÉÏÕÒÁËһϣ¬·¢ÏÖpoi¿ÉÒÔ°Ñword×°»»³Étxt,µ«ÊǸñʽ¶¼¶ªÁË,Ö»ÓйâͺͺµÄÎı¾,ÓÖËÑjacob, ÍøÓÑÃÇÖÚ˵·×ç¡, ×îºó»¹ÊÇ×Ô¼ºsourceforgeÉÏÏÂÔØjaco ......

javaÖн«ÖÐÎÄת»»Îªunicode±àÂë

jdk/binĿ¼ÏÂnative2ascii.exeÎļþ¿ÉÒÔÖ±½Ó½«ÖÐÎÄת³Éunicode.
cmd½øµ½binĿ¼Ï£¬ÔËÐÐnative2ascii.exe¡£ÊäÈëÖÐÎĻسµºó¾ÍÉú³ÉÁËunicode±àÂë¡£
Ö±½ÓË«»÷ÔËÒ²ÐУ¬ÎÒÔÚCMDÏÂÔËÐÐÖ÷ÒªÊÇΪÁË·½±ã½«×ª»»ºóµÄ±àÂ뿽±´³öÀ´¡£
Àý£º
cmd
cd C:\Java\jdk1.5.0_17
C:\Java\jdk1.5.0_17>native2ascii
Ó¬Âñ²Ø  &nb ......

JavaÐòÁл¯µÄ»úÖƺÍÔ­Àí

ÓйØJava¶ÔÏóµÄÐòÁл¯ºÍ·´ÐòÁл¯Ò²ËãÊÇJava»ù´¡µÄÒ»²¿·Ö£¬ÏÂÃæ¶ÔJavaÐòÁл¯µÄ»úÖƺÍÔ­Àí½øÐÐһЩ½éÉÜ¡£
¡¡¡¡JavaÐòÁл¯Ë㷨͸Îö
¡¡¡¡Serialization£¨ÐòÁл¯£©ÊÇÒ»ÖÖ½«¶ÔÏóÒÔÒ»Á¬´®µÄ×Ö½ÚÃèÊöµÄ¹ý³Ì£»·´ÐòÁл¯deserializationÊÇÒ»ÖÖ½«ÕâЩ×Ö½ÚÖؽ¨³ÉÒ»¸ö¶ÔÏóµÄ¹ý³Ì¡£JavaÐòÁл¯APIÌṩһÖÖ´¦Àí¶ÔÏóÐòÁл¯µÄ±ê×¼»úÖÆ¡£ÔÚÕâÀ ......

java²¢·¢±à³Ìʵ¼ù±Ê¼Ç

1, ±£Ö¤Ḭ̈߳²È«µÄÈýÖÖ·½·¨
:
    a, ²»Òª¿çÏ̷߳ÃÎʹ²Ïí±äÁ¿
    b, ʹ¹²Ïí±äÁ¿ÊÇ
finalÀàÐ͵Ä
    c, ½«¹²Ïí±äÁ¿µÄ²Ù×÷¼ÓÉÏͬ²½
2, Ò»¿ªÊ¼¾Í½«ÀàÉè¼Æ³ÉḬ̈߳²È«µÄ
, ±ÈÔÚºóÆÚÖØÐÂÐÞ¸´Ëü
,¸üÈÝÒ×
.
3, ±àд¶àÏ̳߳ÌÐò
, Ê×ÏÈ
±£Ö¤ËüÊÇÕýÈ·µÄ
, Æä´ÎÔÙ¿¼ÂÇÐÔÄÜ ......

×·ÃÀüµÄ¼¼Êõ——javaÉè¼Æģʽ£¨×ª£©

    1¡¢FACTORY—×·MMÉÙ²»ÁËÇë³Ô·¹ÁË£¬Âóµ±À͵ļ¦³áºÍ¿ÏµÂ»ùµÄ¼¦³á¶¼ÊÇMM°®³ÔµÄ¶«Î÷£¬ËäÈ»¿ÚζÓÐËù²»Í¬£¬µ«²»¹ÜÄã´øMMÈ¥Âóµ±ÀÍ»ò¿ÏµÂ»ù£¬Ö»¹ÜÏò·þÎñԱ˵“À´Ëĸö¼¦³á”¾ÍÐÐÁË¡£Âóµ±ÀͺͿϵ»ù¾ÍÊÇÉú²ú¼¦³áµÄFactory
¡¡¡¡¹¤³§Ä£Ê½£º¿Í»§ÀàºÍ¹¤³§Àà·Ö¿ª¡£Ïû·ÑÕßÈκÎʱºòÐèҪijÖÖ²úÆ·£¬Ö»ÐèÏò¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ