题解
句子逆序
http://www.nowcoder.com/questionTerminal/48b3cb4e3c694d9da5526e6255bb73c3
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String str = scan.nextLine();
String[] rev= str.split(" ");
//ArrayList<string> set= new ArrayList();
for(int i=rev.length-1;i>=0;i--){
System.out.print(rev[i]+" ");
}</string>
}
}