请教一下,把下面的String[] s={"a","b","c","d","e","f"}; 变成int[]s={1,2,3,4,5,6};怎么反序,下面代码怎么改,谢谢!
String[] s={"a","b","c","d","e","f"};
List<String> list=Arrays.asList(s);
Collections.reverse(list);
list.toArray(s);
for(String str:s)
{
System.out.print(str+" ");
}
}
阿旭_
Bossen
相关分类