让你的Eclipse会放鬼片!
- package com.itheima;
- import java.util.List;
- import java.util.Vector;
- public class Test03 {
- public static void main(String[] args) {
-
- List<String> list = new Vector<String>();
- for(int x =0;x<100100;x++){
- list.add("hiahia"+x);
- }
- System.out.println(list);
- list.add(2, "hiahia");
- System.out.println(list);
- }
- }
复制代码
请先运行程序 并密切关注 Console.
如果感觉不吓人把数字再加个0 |