src/util/Output.java
public static void removeId(int id)
    {
        if(!checkToPrint(id))
            return;
        
        int[] newIdArray = new int[idArray.length - 1];
        
        for(int currentIndex = 0, newIndex = 0; currentIndex < idArray.length; currentIndex++)
        {
            if(idArray[currentIndex] == id)
                continue;
            
            newIdArray[newIndex++] = idArray[currentIndex];
        }
        
        idArray = newIdArray;
    }
/**
     * Checks if the id to be removed is absent, if there removes it from the idArray (to print).
     * @param id 
     */
Checks if the id to be removed is absent, if there removes it from the idArray (to print).
@param id
Checks if the id to be removed is absent if there removes it from the idArray ( to print ) . @param id
public static void removeId(int id)
    {
        if(!checkToPrint(id))
            return;
        int[] newIdArray = new int[idArray.length - 1];
        for(int currentIndex = 0, newIndex = 0; currentIndex < idArray.length; currentIndex++)
        {
            if(idArray[currentIndex] == id)
                continue;
            newIdArray[newIndex++] = idArray[currentIndex];
        }
        idArray = newIdArray;
    }
public static void removeId ( int id ) { if ( ! checkToPrint ( id ) ) return ; int [ ] newIdArray = new int [ idArray . length - 1 ] ; for ( int currentIndex = 0 , newIndex = 0 ; currentIndex < idArray . length ; currentIndex ++ ) { if ( idArray [ currentIndex ] == id ) continue ; newIdArray [ newIndex ++ ] = idArray [ currentIndex ] ; } idArray = newIdArray ; }
Checks if the id to be removed is absent, if there removes it from the idArray (to print).
Checks if the id to be removed is absent if there removes it from the idArray ( to print ) .