Java分割字符串并按不一样顺序输出

public static void main(String args[]){ //按空格分割 并倒叙输出 String str = "hello nice to mite you"; String arr[] = str.split(" "); for(int i=arr.length-1; i>=0; i--){ System.out.println(arr[i]);
相关文章
相关标签/搜索