将形如&userid=abc&secret=password的字符串转成Map
public static Map<String, String> transStringToMap(String mapString){
Map<String, String> map = new TreeMap<String, String>();
Scanner items;
for(Scanner entrys = new Scanner(mapString).useDelimiter("&"); entrys.hasNext();
map.put(items.next(), items.hasNext() ? ((String) (items.next())) : null))
items = new Scanner(entrys.next()).useDelimiter("=");
return map;
}