力扣
吃饱就写BUG
因为我很懒,所以懒得写啦
展开
-
详解Math.max()与toArray()方法
Math.max()函数只能传入一组参数来求最大值。toArray()方法是List接口中提供的方法,用来实现List对象转换为数组对象的功能。原创 2023-01-25 15:40:07 · 321 阅读 · 0 评论 -
详解Arrays.sort()排序
Arrays.sort(int [] a);Arrays.sort(int[] a, int fromIndex, int toIndex);public static void sort(T[] a,int fromIndex, int toIndex, Comparator原创 2023-01-25 15:34:14 · 2293 阅读 · 0 评论