<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    替換字符串

     public class StyleSearchAndReplace {
     public static void main(String args[]) {

       String statement = "The question as to whether the jab is"
           + " superior to the cross has been debated for some time in"
           + " boxing circles. However, it is my opinion that this"
           + " false dichotomy misses the point. I call your attention"
           + " to the fact that the best boxers often use a combination of"
           + " the two. I call your attention to the fact that Mohammed"
           + " Ali,the Greatest of the sport of boxing, used both. He had"
           + " a tremendous jab, yet used his cross effectively, often,"
           + " and well";

       String newStmt = statement.replaceAll("The question as to whether",
           "Whether");

       newStmt = newStmt.replaceAll(" of the sport of boxing", "");
       newStmt = newStmt.replaceAll("amount of success", "success");
       newStmt = newStmt.replaceAll("However, it is my opinion that this",
           "This");

       newStmt = newStmt.replaceAll("a combination of the two", "both");
       newStmt = newStmt.replaceAll("This is in spite of the fact that"
           + " the", "The");
       newStmt = newStmt.replaceAll("I call your attention to the fact that",
           "");

       System.out.println("BEFORE:\n" + statement + "\n");
       System.out.println("AFTER:\n" + newStmt);
     }
    }

    posted on 2007-06-26 16:01 付軒 閱讀(258) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    <2007年6月>
    272829303112
    3456789
    10111213141516
    17181920212223
    24252627282930
    1234567

    導航

    統計

    常用鏈接

    留言簿(2)

    隨筆檔案

    相冊

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 91成人免费观看| 亚洲成人免费网址| 免费国产a国产片高清网站| 亚洲乱码一二三四五六区| 亚洲免费二区三区| 亚洲制服丝袜精品久久| 亚色九九九全国免费视频| 91嫩草亚洲精品| 最近最新MV在线观看免费高清| 亚洲理论片在线中文字幕| 嘿嘿嘿视频免费网站在线观看| 亚洲三级在线免费观看| 插B内射18免费视频| 亚洲乱妇熟女爽到高潮的片| 日本高清免费不卡在线| 国产天堂亚洲精品| 亚洲日韩国产成网在线观看| 中文字幕免费播放| 亚洲人成电影在在线观看网色 | 亚洲成av人片在www鸭子| 永久免费看bbb| 一级毛片在线完整免费观看| 国产亚洲精品自在线观看| 日本高清不卡aⅴ免费网站| 亚洲国产天堂在线观看| 国产成人精品免费视频动漫| 亚洲综合国产成人丁香五月激情 | 精品久久免费视频| 一级毛片成人免费看a| 亚洲欧洲在线观看| 在线观看免费毛片| 国产精品成人免费观看| 久久精品亚洲综合| 69成人免费视频无码专区| 美女尿口扒开图片免费 | 四虎影视在线影院在线观看免费视频 | 国产精品色午夜免费视频| 男人j进女人p免费视频| 精品亚洲成a人片在线观看少妇| 最新猫咪www免费人成| 2022国内精品免费福利视频|