public static String dictionaryToString(Dictionary<Object,Object> dict){
  Enumeration<Object> keys=dict.keys();
  Object key, value;
  StringBuffer result=new StringBuffer();
  while (keys.hasMoreElements()) {
    key=keys.nextElement();
    value=dict.get(key);
    result.append(key.toString());
    result.append(" = ");
    result.append(value.toString());
    result.append("; ");
  }
  return result.toString();
}

public static String dictionaryToString ( Dictionary < Object , Object > dict ) { Enumeration < Object > keys = dict . keys ( ) ; Object key , value ; StringBuffer result = new StringBuffer ( ) ; while ( keys . hasMoreElements ( ) ) { key = keys . nextElement ( ) ; value = dict . get ( key ) ; result . append ( key . toString ( ) ) ; result . append ( " = " ) ; result . append ( value . toString ( ) ) ; result . append ( "; " ) ; } return result . toString ( ) ; }
returns a semicolumn separated list of keys and values in the dictionary . here is an example of returned string " key1 = value1 ; key2 = value2 ; "
