javaС³ÌÐò£¨1£©
¡¾ÎÄÕ±êÌâ¡¿javaС³ÌÐò£¨1£©
¡¾ÎÄÕÂ×÷Õß¡¿Ôø½¡Éú
¡¾×÷ÕßÓÊÏä¡¿zengjiansheng1@126.com
¡¾×÷ÕßQQ¡¿190678908
¡¾×÷ÕßÉùÃ÷¡¿±¾ÈËˮƽÓÐÏÞ£¬Ê§ÎóÖ®´¦£¬¾´Çë¸÷λָ³ö¡£±¾ÈËÒÔǰдµÄһЩС³ÌÐò£¬·ÖÏíÒ»ÏÂÏ£Íû¶Ô¸÷λѧϰjavaÓаïÖú ^-^
*******************************************************************************
ÌâÄ¿£º
/*====µÚ¶þÌâ====================================
×Ô¶¨Òå×Ö·ûÊäÈëÁ÷µÄ°ü×°À࣬ͨ¹ýÕâ¸ö°ü×°Àà¶Ôµ×²ã×Ö·ûÊäÈëÁ÷½øÐаü×°£¬
ÈóÌÐòͨ¹ýÕâ¸ö°ü×°Àà¶Áȡij¸öÎı¾Îļþ£¨ÀýÈ磬һ¸öjavaÔ´Îļþ£©Ê±£¬
Äܹ»ÔÚ¶ÁÈ¡µÄÿÐÐÇ°Ã涼¼ÓÉÏÓÐÐкźÍðºÅ¡£
Ìáʾ:£¨MyBufferedReader,MyLineNumberReader£©
*/
/*====µÚÈýÌâ====================================
¿½±´Ò»¸ö´øÄÚÈݵÄÎļþ¼Ð¡£
*/
/*====µÚËÄÌâ====================================
±àдһ¸ö³ÌÐò£¬µ±Óû§ÊäÈëÒ»¸öĿ¼ʱ£¬
¸Ã³ÌÐòÄÜÁгö¸ÃĿ¼ÏµÄËùÓÐ×ÓĿ¼ºÍÎļþ¡£
*/
/*====µÚÎåÌâ====================================
ÓÐÎå¸öѧÉú£¬Ã¿¸öѧÉúÓÐ3Ãſεijɼ¨£¬¶¨ÒåÒ»ÖֱȽÏÖ±¹ÛµÄÎı¾Îļþ¸ñʽ£¬
ÊäÈëѧÉúÐÕÃûºÍ³É¼¨£¬´Ó¼üÅÌÊäÈëÒÔÉÏÊý¾Ý£¨°üÀ¨ÐÕÃû£¬ÈýÃſγɼ¨£©£¬
°´×Ü·ÖÊý´Ó¸ßµ½µÍµÄ˳Ðò½«Ñ§ÉúÐÅÏ¢´æ·ÅÔÚ´ÅÅÌÎļþ"stu.txt"ÖС£
*/
/*====µÚÁùÌâ====================================
È¡³öD:ÅÌÏÂÈ«²¿µÄ.javaÎļþµÄÎļþ·¾¶±£´æÔÚjava.txtÎļþÖÐ
*/
/*====µÚÆßÌâ====================================
¼ÆËã×Ö·û´®ÖÐ×Ó´®³öÏÖµÄλÖã¬
Àý£º×Ó´®"kk"ÔÚ×Ö·û´®abkkcdkkabkkefkkÖгöÏֵĴÎÊý
/*====µÚ¶þÌâ====================================
×Ô¶¨Òå×Ö·ûÊäÈëÁ÷µÄ°ü×°À࣬ͨ¹ýÕâ¸ö°ü×°Àà¶Ôµ×²ã×Ö·ûÊäÈëÁ÷½øÐаü×°£¬
ÈóÌÐòͨ¹ýÕâ¸ö°ü×°Àà¶Áȡij¸öÎı¾Îļþ£¨ÀýÈ磬һ¸öjavaÔ´Îļþ£©Ê±£¬
Äܹ»ÔÚ¶ÁÈ¡µÄÿÐÐÇ°Ã涼¼ÓÉÏÓÐÐкźÍðºÅ¡£
Ìáʾ:£¨MyBufferedReader,MyLineNumberReader£©
*/
import java.io.*;
/*
×Ô¶¨Òå×Ö·ûÊäÈëÁ÷µÄ°ü×°À࣬ͨ¹ýÕâ¸ö°ü×°Àà¶Ôµ×²ã×Ö·ûÊäÈëÁ÷½øÐаü×°£¬
ÈóÌÐòͨ¹ýÕâ¸ö°ü×°Àà¶Áȡij¸öÎı¾Îļþ£¨ÀýÈ磬һ¸öjavaÔ´Îļþ£©Ê±£¬
Äܹ»ÔÚ¶ÁÈ¡µÄÿÐÐÇ°Ã涼¼ÓÉÏÓÐÐкźÍðºÅ¡£
*/
class MyLineNumberReader
{
private Reader r;
&nbs
Ïà¹ØÎĵµ£º
1.½éÉÜ
1£©DOM£¨JAXP Crimson½âÎöÆ÷£©
DOMÊÇÓÃÓëƽ̨ºÍÓïÑÔÎ޹صķ½Ê½±íʾXMLÎĵµµÄ¹Ù·½W3C±ê×¼¡£DOMÊÇÒÔ²ã´Î½á¹¹×éÖ¯µÄ½Úµã»òÐÅϢƬ¶ÏµÄ¼¯ºÏ¡£Õâ¸ö²ã´Î½á¹¹ÔÊÐí¿ª·¢ÈËÔ±ÔÚÊ÷ÖÐÑ°ÕÒÌض¨ÐÅÏ¢¡£·ÖÎö¸Ã½á¹¹Í¨³£ÐèÒª¼ÓÔØÕû¸öÎĵµºÍ¹¹Ôì²ã´Î½á¹¹£¬È»ºó²ÅÄÜ×öÈκι¤×÷¡£ÓÉÓÚËüÊÇ»ùÓ ......
ÔÎĵØÖ·£ºhttp://hi.baidu.com/lin_zy/blog/item/bf14d21f6bb12ff6e1fe0bf1.html
¸ÅÄî
ʲôÊÇÒì³££¿
Òì³££¨exception£©Ó¦¸ÃÊÇÒ쳣ʼþ£¨exceptional event£©µÄËõд¡£
Òì³£¶¨Ò壺Òì³£ÊÇÒ»¸öÔÚ³ÌÐòÖ´ÐÐÆڼ䷢ÉúµÄʼþ£¬ËüÖжÏÕýÔÚÖ´ÐеijÌÐòµÄÕý³£µÄÖ¸ÁîÁ÷¡£
µ±ÔÚÒ»¸ö·½·¨Öз¢Éú´íÎóµÄʱºò£¬Õâ¸ö·½·¨´´½¨Ò»¸ö¶ÔÏ󣬲¢ÇÒ ......
1. Êý×éÓÐûÓÐlength()Õâ¸ö·½·¨? StringÓÐûÓÐlength()Õâ¸ö·½·¨£¿
´ð£ºÊý×éûÓÐlength()Õâ¸ö·½·¨£¬ÓÐlengthµÄÊôÐÔ¡£
StringÓÐlength()Õâ¸ö·½·¨¡£
2. String s = new String("xyz") ......
package com.joe;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Test
{
//½«×Ö·û´®µÄÊý×Ö×Ö·ûÊä³ö
public static void main(String[] args)
{
String str = "iu7i8hy4j ......