list[i] = packets[i].getType();
list[count++] = packets[i].getType();
    public int[] getCriticalTags()    {        int    count = 0;                for (int i = 0; i != packets.length; i++)        {            if (packets[i].isCritical())            {                count++;            }        }                int[]    list = new int[count];                for (int i = 0; i != packets.length; i++)        {            if (packets[i].isCritical())            {                list[i] = packets[i].getType();            }        }                return list;    }