1/**
2 * Copyright(C) 2003
3 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4 *
5 * Permission to use, copy, modify, and distribute this
6 * software and its documentation for EDUCATIONAL purposes
7 * and without fee is hereby granted provided that this
8 * copyright notice appears in all copies.
9 *
10 * @date : September 1, 2003
11 * @authorĀ : Salih Yurttas
12 *
13 * ArrayList00.cs
14 */
15
16
17using System;
18using System.Collections;
19
20namespace ArrayList00
21{
22
23 public class AL00
24 {
25 public static void Main(string[] args)
26 {
27 int N=4;
28 ArrayList aL1 = new ArrayList();
29
30 for(int i=0; i<N; i++)
31 aL1.Add(i);
32
33 for(int i=0; i<N; i++)
34 aL1.Add(i);
35
36 int n = aL1.Count;
37 for(int i=0; i<n; i++)
38 Console.WriteLine((int)aL1[i]);
39
40 Console.WriteLine();
41
42 foreach(int i in aL1)
43 Console.WriteLine(i);
44 }
45 }
46
47}