public static String addGetParameter(String path, String parameterKey, String parameter) {
		StringBuilder sb = new StringBuilder(path);
		if (path.indexOf("?") > 0) {
			sb.append("&");
		} else {
			sb.append("?");
		}
		sb.append(parameterKey).append("=").append(parameter);
		return sb.toString();
	}
public static String addGetParameter ( String path , String parameterKey , String parameter ) { StringBuilder sb = new StringBuilder ( path ) ; if ( path . indexOf ( "?" ) > 0 ) { sb . append ( "&" ) ; } else { sb . append ( "?" ) ; } sb . append ( parameterKey ) . append ( "=" ) . append ( parameter ) ; return sb . toString ( ) ; }
Adds a key and value to the request path & or ? will be used as needed

path + ? or & + parameterKey=parameter

@param path
the url to add the parameterKey and parameter too
@param parameterKey
the key in the get request (parameterKey=parameter)
@param parameter
the parameter to add to the end of the url
@return a String with the url parameter added: path + ? or & +
parameterKey=parameter