1、public static String toString(数组),将参数数组变成字符串(按照默认格式)
int [] intArray = {10,20,30};
String str = Arrays.toString(intArray);
2、pubblic static void sort(数组) 对数组的元素进行排序
int [] array = {1,2,5,2,5,2,5,2,11,21,24,};
Arrays.sort(array);
原文地址:https://www.cnblogs.com/xinglingzhiren/p/10989379.html
时间: 2024-12-14 08:36:46