chapter_003/src/main/java/ru/job4j/productivity/Productivity.java
/**
     * This method can remove values from the collection
     *
     * @param collection - the collection
     * @param amount - amont
     * @return long - time work
     */
This method can remove values from the collection
@param collection - the collection
@param amount - amont
@return long - time work
This method can remove values from the collection @param collection - the collection @param amount - amont @return long - time work
public long delete(Collection<String> collection, int amount) {
        for (int y = 0; y < amount + 1000; y++) {
            collection.add(String.valueOf(y));
        }
        start = System.currentTimeMillis();
        for (int x = 0; x < amount; x++) {
            collection.remove(String.valueOf(x));
        }
        finish = System.currentTimeMillis();
        return finish - start;
    }
public long delete ( Collection < String > collection , int amount ) { for ( int y = 0 ; y < amount + 1000 ; y ++ ) { collection . add ( String . valueOf ( y ) ) ; } start = System . currentTimeMillis ( ) ; for ( int x = 0 ; x < amount ; x ++ ) { collection . remove ( String . valueOf ( x ) ) ; } finish = System . currentTimeMillis ( ) ; return finish - start ; }
This method can remove values from the collection
 @param collection - the collection
 @param amount - amont
 @return long - time work
This method can remove values from the collection @param collection - the collection @param amount - amont @return long - time work