Driver code
public static void main ( String args [ ] ) { String item [ ] = { " toy " , " pen " , " notebook " , " pen " } ; int n = item . length ; int price [ ] = { 2 , 1 , 3 , 2 } ; findPrices ( item , price , n ) ; } }