Java Map Print printMapToString(Map map)

Here you can find the source of printMapToString(Map map)

Description

print Map To String

License

Open Source License

Declaration

public static String printMapToString(Map<String, String> map) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Map;

public class Main {
    public static String printMapToString(Map<String, String> map) {
        StringBuilder sb = new StringBuilder();

        for (Map.Entry<String, String> entry : map.entrySet()) {
            sb.append(entry.getKey());//from  w w  w .ja va 2  s  .  c om
            sb.append("=");
            sb.append(entry.getValue());
            sb.append(";");
        }
        return sb.toString();
    }
}

Related

  1. printMap(Map map, int depth)
  2. printMap(String mapLabel, Map map)
  3. printMapGeneral(Map map)
  4. printMapObject(Map mapobject)
  5. printMapStrings(Map> map, String mapDescription)
  6. printNERScore(Map scores)
  7. printOptions(Map options)
  8. printStringMap(Map hsMap, String sDel)
  9. printTokenStream(CommonTokenStream tokens, Map tokenToName)