static int [ ] drop ( int [ ] itemset ) { if ( itemset . length >= 1 ) { int n = itemset . length - 1 ; int [ ] newItemset = new int [ n ] ; System . arraycopy ( itemset , 1 , newItemset , 0 , n ) ; return newItemset ; } else { return null ; } }
Drops an item form the front of an item set .