weixin_39603469的博客第一个类public class Customer {public int integral;// 积分public int number;// 编号}第二个类public class CustManger {Customer[] customers = new Customer[100];public void add(Customer cust) {for (int i...
原来是大山啊的博客运行报错:5 7 13 19 Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 11 out of bounds for length 8-------------一种运行时异常,常出现在数组下标越界中,称为下标出界异常。...
weixin_39707693的博客第一个类publicclassCustomer{publicintintegral;//积分publicintnumber;//编号}第二个类publicclassCustManger{Customer[]customers=newCustomer[100];publicvoidadd(Customercust){...第一个类public class ...