java新生很想问一个System.out.println问题,求解啊
程序代码:
package myproject; public class Mytest2 { public static void main(String[]args){ int javaArrays[][]=new int[][]{ {1,2},{3,4}}; int newArrays[][]=new int[][]{ {1,2},{3,4}}; System.out.println("If javaArrays is same as newArrays\n"+Arrays.deepEquals(javaArrays,newArrays)); } }
我用eclipse写的,但是总是提示我
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Arrays cannot be resolved
at myproject.Mytest2.main(Mytest2.java:9)
求解啊