question: private void addLoyaltyCards ( int cardsToAdd ) { for ( int index = cardsToAdd ; index > 0 ; index -- ) { String storeName = String . format ( "store, \"%4d" , index ) ; String note = String . format ( "note, \"%4d" , index ) ; boolean result = db . insertLoyaltyCard ( storeName , note , BARCODE_DATA , BARCODE_TYPE ) ; assertTrue ( result ) ; } assertEquals ( cardsToAdd , db . getLoyaltyCardCount ( ) ) ; }
target:  Add the given number of cards, each with an index in the store name.