| The following is the code fragment: Let's use the new keyword to create an ArrayList object, assign a value to the Item of the array, and initialize the array: <% dim arr as new arraylist Arr.add (1) arr.add (3) arr.add (2) Arr.add (445) Arr.add (223) Arr.add (112) Response.write (CSTR (Arr.Count)) %> 'If the array shows all the data, use the following statement: <% for i = 0 to arr.Count response.write (Arr.item (i)) next %> 'If you let it sort, we can call the sort method: <% arr.sort () for i = 0 to arr.Count response.write (Arr.item (i)) next %> |