第二次作业

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

原文地址:https://www.cnblogs.com/deily/p/5322941.html