src/util/Output.java
public static void addId(int id)
    {
        if(checkToPrint(id))
            return;
        
        int[] newIdArray = new int[idArray.length + 1];
        
        for(int index = 0; index < newIdArray.length; index++)
        {
            if((index + 1) == newIdArray.length)
                newIdArray[index] = id;
            
            else
                newIdArray[index] = idArray[index];
        }
        
        idArray = newIdArray;
    }
/**
     * Checks if the id to be added is included, if not adds it to the last position of the idArray (to print).
     * @param id 
     */
Checks if the id to be added is included, if not adds it to the last position of the idArray (to print).
@param id
Checks if the id to be added is included if not adds it to the last position of the idArray ( to print ) . @param id
public static void addId(int id)
    {
        if(checkToPrint(id))
            return;
        int[] newIdArray = new int[idArray.length + 1];
        for(int index = 0; index < newIdArray.length; index++)
        {
            if((index + 1) == newIdArray.length)
                newIdArray[index] = id;
            else
                newIdArray[index] = idArray[index];
        }
        idArray = newIdArray;
    }
public static void addId ( int id ) { if ( checkToPrint ( id ) ) return ; int [ ] newIdArray = new int [ idArray . length + 1 ] ; for ( int index = 0 ; index < newIdArray . length ; index ++ ) { if ( ( index + 1 ) == newIdArray . length ) newIdArray [ index ] = id ; else newIdArray [ index ] = idArray [ index ] ; } idArray = newIdArray ; }
Checks if the id to be added is included, if not adds it to the last position of the idArray (to print).
Checks if the id to be added is included if not adds it to the last position of the idArray ( to print ) .