java调用常量数组a{0-9}为什么输出为“[I@15db9742”例子如下
publicclassProduct{finalint[]a=newint[]{0,1,2,3,4,5,6,7,8,9};publicstaticvoidmain(Str...
public class Product{
final int[] a = new int[]{0,1,2,3,4,5,6,7,8,9};
public static void main(String[] args){
Product d = new Product();
System.out.println(d.a);
}
} 展开
final int[] a = new int[]{0,1,2,3,4,5,6,7,8,9};
public static void main(String[] args){
Product d = new Product();
System.out.println(d.a);
}
} 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询