<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)

    隨筆檔案

    相冊

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 国产99久久久久久免费看| 国产精品亚洲а∨无码播放不卡 | 亚洲精品无码久久一线| 一级毛片**免费看试看20分钟| 亚洲黄网在线观看| 国产亚洲精品岁国产微拍精品| 波多野结衣中文一区二区免费| 亚色九九九全国免费视频| 亚洲av无码成人影院一区| 亚洲国产精品人久久电影| 亚洲Av无码专区国产乱码DVD | 亚洲乱码国产一区三区| 国产免费av片在线播放| 国产成人免费爽爽爽视频| 日韩在线视频免费 | 又爽又黄无遮挡高清免费视频| 国拍在线精品视频免费观看| 99免费视频观看| 亚洲色偷偷偷综合网| 亚洲综合校园春色| 亚洲国产精品成人网址天堂| 在线a人片天堂免费观看高清| 国产免费伦精品一区二区三区| 亚洲国产高清视频在线观看| 亚洲国产精品久久久久网站| 日本免费一区尤物| 国产高清免费在线| 人妻无码一区二区三区免费| 成人免费区一区二区三区| 中文字幕在线成人免费看| 黄色网页在线免费观看| 两个人看的www免费视频中文| 久久www免费人成精品香蕉 | 亚洲大片在线观看| 亚洲一区二区电影| 67pao强力打造67194在线午夜亚洲 | 亚洲人成综合网站7777香蕉| 亚洲精品动漫免费二区| 亚洲av鲁丝一区二区三区| 亚洲电影免费在线观看| 亚洲国产综合第一精品小说|