public String toString(final String name,final String header){
  final Map<String,Integer> items=contents.get(name);
  final StringBuilder sb=new StringBuilder(header + "\n");
  for (  final Entry<String,Integer> entry : items.entrySet()) {
    sb.append(entry.getKey() + " \t" + entry.getValue()+ "\n");
  }
  return sb.toString();
}

public String toString ( final String name , final String header ) { final Map < String , Integer > items = contents . get ( name ) ; final StringBuilder sb = new StringBuilder ( header + "\n" ) ; for ( final Entry < String , Integer > entry : items . entrySet ( ) ) { sb . append ( entry . getKey ( ) + " \t" + entry . getValue ( ) + "\n" ) ; } return sb . toString ( ) ; }
converts a shop into a human readable form
