Here you can find the source of getParameter(String source, int index)
public static String getParameter(String source, int index)
//package com.java2s; //License from project: Open Source License import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { public static String getParameter(String source, int index) { String[] result = source.split("&"); try {//w ww. j a v a 2 s.c o m return URLDecoder.decode(result[index].substring(result[index].indexOf("=") + 1), "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return null; } }