Java array와 ArrayList 비교

ArrayList
<%@ page import=”java.util.ArrayList”%>
List <JSONObject> jsonOBJ_list = new ArrayList<JSONObject>();
List<Integer> int_list = new ArrayList<Integer>();
jsonOBJ_list.add(“cid”, 10);
System.out.println(“searchJQX.select>int_list=”+jsonOBJ_list.toString());
int_list .add(10);
System.out.println(“searchJQX.select>cids=”+Arrays.toString(cids));

Array
<%@ page import=”java.util.Arrays”%>
int[] cids = new int[5000];
cids[no] = 10;
System.out.println(“searchJQX.select>cids=”+Arrays.toString(cids));