Here you can find the source of paserParams(String url)
public static HashMap<String, String> paserParams(String url)
//package com.java2s; import java.util.HashMap; public class Main { public static HashMap<String, String> paserParams(String url) { String params = url.substring(url.indexOf("?") + 1); String[] arr = params.split("&"); HashMap<String, String> maps = new HashMap<String, String>(); for (String s : arr) { maps.put(s.substring(0, s.indexOf("=")), s.substring(s.indexOf("=") + 1)); }// w w w . j a v a 2 s . c o m return maps; } }