第二次作业

import java.util.HashMap;
import java.util.Map;
public class test2_2 {
    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        String a = "how are you";
        String[] b = a.split(" ");
        String c = "";
        for(int d=b.length;d>0;d--)
        {
            c=c+b[d-1]+" ";
        }
        System.out.println(c);
    }
}

posted @ 2016-03-26 14:53  deily  阅读(138)  评论(1编辑  收藏  举报