posts - 325,  comments - 25,  trackbacks - 0
           public static void main(String[] args)
                  {
                          String str=" i am a student";
                          char[] c=str.toCharArray();
                  char[] temp=new char[c.length];
                       for(int i=0,j=c.length-1;i<c.length;i++,j--){
                                  temp[j]=c[i];
                                           }

               public static void main(String[] args)
                  {
                          String str = "I am a student";
                          String[] str2 = str.split(" ");
                          for(int i = str2.length - 1;i >= 0;i--)
                          {
                                  System.out.print(str2[i] + " ");
                          }
                          System.out.println();
                  }

                          System.out.println(temp);
                  }
          posted on 2008-08-29 09:36 長(zhǎng)春語林科技 閱讀(329) 評(píng)論(0)  編輯  收藏 所屬分類: java
          <2008年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

           

          長(zhǎng)春語林科技?xì)g迎您!

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊(cè)

          收藏夾

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 虹口区| 巴南区| 攀枝花市| 罗山县| 西峡县| 永丰县| 平舆县| 信宜市| 珠海市| 辽阳市| 资溪县| 泊头市| 上林县| 建平县| 玉山县| 长武县| 沈阳市| 封丘县| 新田县| 青海省| 陆川县| 开封市| 金湖县| 奎屯市| 灵武市| 云龙县| 曲靖市| 淳安县| 浦城县| 德州市| 枣强县| 醴陵市| 汶川县| 平山县| 泾川县| 房产| 资源县| 称多县| 连南| 阜南县| 武穴市|