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+");
Ïà¹ØÎĵµ£º
×î½üÏîÄ¿ÖÐÐèÒªÔÚÒ³ÃæÖÐÔ¤ÀÀwordÎļþ£¬Ëä˵word±¾Éí¾Í¿ÉÒÔÔÚÒ³ÃæÖдò¿ª£¬µ«ÊÇÓÐÁ½¸ö±×¶Ë£¬1ÊÇ¿É¿Í»§¶Ë±ØÐë°²×°word£¬ 2ÊÇ¿Í»§¶ËµÄ»·¾³ÒÔ¼°office°æ±¾ÓвîÒ죬»áÔì³ÉÔ¤ÀÀ²»Îȶ¨¡£ÔÚÍøÉÏÕÒÁËһϣ¬·¢ÏÖpoi¿ÉÒÔ°Ñword×°»»³Étxt,µ«ÊǸñʽ¶¼¶ªÁË,Ö»ÓйâͺͺµÄÎı¾,ÓÖËÑjacob, ÍøÓÑÃÇÖÚ˵·×ç¡, ×îºó»¹ÊÇ×Ô¼ºsourceforgeÉÏÏÂÔØjaco ......
ÓÉÓÚÊÖÍ·ÓиöÏîÄ¿ÐèÒªÓõÄJavaµÄÊäÈëÊä³ö²Ù×÷£¬
¡¡¡¡ËùÒÔ£¬¿ÐÁ˼¸ÌìÊ飬¶ÔJavaµÄÁ÷¼¼ÊõÓÐЩÁ˽⣬²»¹ý£¬»¹ÊÇÓкܶ಻ÊǺÜÃ÷°×£¬ÏÂÃæÊÇÎÒ¿´ÊéÕûÀíµÄһЩ±Ê¼Ç£¬ÑϸñµÄ˵Ӧ¸Ã²»ÊÇÔ´´£¬ÎÒÌù³öÀ´Ö»ÊÇÏ£Íû¶Ô´ó¼ÒÓÐһЩ°ïÖú
¡¡¡¡
¡¡¡¡1¡¢JavaÓµÓÐÒ»¸öÍêÕûµÄÁ÷ÀàÐÍ£¬×ÜÊý³¬¹ý60£¬¶øËĸö³éÏóÀ๹³ÉÁËÕâЩÀàµÄ»ù´¡
¡¡¡¡
¡¡¡¡In ......
1¡¢´´½¨ÁËÒ»¸ö¶ÔÏóºó£º £¨1£©Ã»ÓÐÔÚÊʵ±µÄµØ·½Êͷŵô £¨2£©ÔÚÓ¦¸ÃÊͷŵĵط½Ã»ÓÐ×öÊͷŲÙ×÷ ÀýÈ磺ÏÂÃæÒ»¶Î³ÌÐò£º m_progressDlg = ProgressDialog.show(this, getString(R.string.market),getString(R.string.is_visiting), true);
new Thread() {
public void run() {
......
1¡¢FACTORY—×·MMÉÙ²»ÁËÇë³Ô·¹ÁË£¬Âóµ±À͵ļ¦³áºÍ¿ÏµÂ»ùµÄ¼¦³á¶¼ÊÇMM°®³ÔµÄ¶«Î÷£¬ËäÈ»¿ÚζÓÐËù²»Í¬£¬µ«²»¹ÜÄã´øMMÈ¥Âóµ±ÀÍ»ò¿ÏµÂ»ù£¬Ö»¹ÜÏò·þÎñԱ˵“À´Ëĸö¼¦³á”¾ÍÐÐÁË¡£Âóµ±ÀͺͿϵ»ù¾ÍÊÇÉú²ú¼¦³áµÄFactory
¡¡¡¡¹¤³§Ä£Ê½£º¿Í»§ÀàºÍ¹¤³§Àà·Ö¿ª¡£Ïû·ÑÕßÈκÎʱºòÐèҪijÖÖ²úÆ·£¬Ö»ÐèÏò¹ ......
ÕâƪÎÄÕÂÎÒÊÇ´ÓIBMÍøÕ¾¿´µ½µÄ£¬ºÜÓÐÓ㬾ÍתÌû¹ýÀ´ÁË£¬ÔÎÄÍøÖ·ÊÇhttp://www.ibm.com/developerworks/cn/java/l-console/index.html£¬µ«ÊÇ´ò¿ªµÄʱºòÌرðÂý£¬¾ÍÔÚÕâÀïÕ³Ìùһϡ£
ÔÚJava¿ª·¢ÖУ¬¿ØÖÆ̨Êä³öÈÔÊÇÒ»¸öÖØÒªµÄ¹¤¾ß£¬µ«Ä¬ÈϵĿØÖÆ̨Êä³öÓÐן÷ÖÖ¸÷ÑùµÄ¾ÖÏÞ¡£±¾ÎĽéÉÜÈçºÎÓÃJava¹ÜµÀÁ÷½ØÈ¡¿ØÖÆ̨Êä³ö£¬·ÖÎö¹ÜµÀÁ ......