Here you can find the source of decodeUrlFormEncoded(String data)
public static Map<String, String> decodeUrlFormEncoded(String data)
//package com.java2s; import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, String> decodeUrlFormEncoded(String data) { HashMap<String, String> map = new HashMap<String, String>(); String d[] = data.split("&"); for (String s : d) { String t[] = s.split("="); String key = t[0];//from w w w . j a v a 2s . c o m String value = t[1]; map.put(key, value); } return map; } }