import java.util.ArrayList;
import java.util.List;
public class test {
public static void main(String[] args) {
// List<Integer>customers=null;//NullPointerException
List<Integer>customers=new ArrayList<Integer>();//IndexOutOfBoundsException
System.out.println(customers.remove(0));
}
}
【角标越界异常】ArrayIndexOutOfBoundsException和StringIndexOutOfBoundsException
最新推荐文章于 2024-08-25 22:07:11 发布