static List<Long> wolfKilledUsers = Lists.newArrayList();
static { wolfKilledUsers.add(1l); wolfKilledUsers.add(1l); wolfKilledUsers.add(2l); }
System.out.println(JsonUtil.dumps(wolfKilledUsers)); wolfKilledUsers.remove(1); System.out.println(JsonUtil.dumps(wolfKilledUsers));
若是刪除1,那麼List會徹底刪除1嗎?rem
答案是不會List