public class MapLister extends Object
Constructor and Description |
---|
MapLister() |
Modifier and Type | Method and Description |
---|---|
static String |
listToString(Map<?,?> map)
Print the content of the Map in a newly created String,
entries are sorted by key, formatted as "key\t= value\n".
把Map里的内容列在String里,Map里的每个entry占一行,按key排序, 每行的格式为“key\t= value\n”。 |
public static String listToString(Map<?,?> map)
map
- The Map object for which the content need to be listed.Copyright © 2014. All Rights Reserved.