标签:print int equals fill system div 排序 logs 填充
int i1[] = {1,2,3,4,5,6}; int i2[] = {6,5,4,3,2,1}; //排序 Arrays.sort(i2); System.out.println(i1.equals( i2 )); System.out.println( Arrays.equals(i1, i2) ); //将数组2的内容填充3 Arrays.fill(i2, 3); System.out.println( Arrays.toString(i2) );
标签:print int equals fill system div 排序 logs 填充
原文地址:http://www.cnblogs.com/achengmu/p/6922472.html