Java Array Print printParameterMap(Map parameters)

Here you can find the source of printParameterMap(Map parameters)

Description

print Parameter Map

License

Open Source License

Declaration

public static String printParameterMap(Map<String, String[]> parameters) 

Method Source Code


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

import java.util.Arrays;
import java.util.Map;
import java.util.Map.Entry;

public class Main {
    public static String printParameterMap(Map<String, String[]> parameters) {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        for (Entry<String, String[]> entry : parameters.entrySet()) {
            sb.append("[" + entry.getKey() + "->" + Arrays.toString(entry.getValue()) + "]");
        }// ww w. j a va  2  s .  com
        sb.append("}");
        return sb.toString();
    }
}

Related

  1. printFloatArray(float[] array)
  2. println(int[] array)
  3. println(Object[] objs)
  4. printMap1(String[] s)
  5. printOutArrayProperty(String key, E[] property, boolean isDefault)
  6. printPoint(double[] ds)
  7. printUsage(String[] args)
  8. printVector(T array[])
  9. printWithIndex(double[] arr)