标签:
使用Arrays类之后要先导入包,即在开头添加这行:
import.java.util.Arrays
1,排序:Arrays.sort(数组名)
排序后为数组升序。
2,将数组转换成字符串:Arrays.toString(数组名)
java数组中Arrays类
原文地址:http://www.cnblogs.com/yatouhetademao/p/5574183.html