posts - 8,  comments - 1,  trackbacks - 0

          import java.util.StringTokenizer;
          public class JusTest {
            public static void main(String[] main)
            {

           String key = "a_charlie_logic";
                
              StringTokenizer st = new StringTokenizer(key, "_");
                  
              String str1=st.nextToken();  
              System.out.println(str1);
              System.out.println(st.countTokens());
             
              String str2=st.nextToken();
              System.out.println(str2);
              System.out.println(st.countTokens());
                  
              String str3=st.nextToken(); 
              System.out.println(str3);
              System.out.println(st.countTokens());
             
           
           
           
           
           }
          }

          posted @ 2007-12-03 15:35 charlie 閱讀(254) | 評論 (0)編輯 收藏
          <2007年12月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 疏勒县| 东辽县| 台北市| 建宁县| 齐河县| 开化县| 荣昌县| 莱州市| 阿城市| 天镇县| 南岸区| 涿鹿县| 瑞昌市| 甘谷县| 松桃| 延寿县| 深圳市| 新源县| 岳普湖县| 聂拉木县| 八宿县| 彩票| 清涧县| 来凤县| 阜阳市| 东辽县| 深州市| 隆德县| 茂名市| 彰武县| 屏边| 南雄市| 山阴县| 南澳县| 达拉特旗| 郁南县| 华池县| 古交市| 英山县| 资中县| 阿克陶县|