?? arraysmethoddemo2.java
字號:
import java.util.Arrays;
public class ArraysMethodDemo2 {
public static void main(String[] args) {
int[] arr1 =new int [10];
int[] arr2 =new int [10];
int[] arr3 =new int [10];
Arrays.fill (arr1,5);
Arrays.fill (arr2,5);
Arrays.fill (arr3,10);
System.out.print("arr1:");
for(int i =0; i< arr1.length; i++)
System.out.print(arr1[i] + "");
System.out.println("\narr1 = arr2 ? " + Arrays.equals(arr1,arr2));
System.out.println("\narr1 = arr3 ? " + Arrays.equals(arr1,arr3));
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -