public static String Pair_2_String(NameValuePair[] nvp) throws Exception {
StringBuffer sfb = new StringBuffer();
for(int i=0;i<nvp.length;i++){
sfb.append(nvp[i].getName()+"=");
sfb.append(nvp[i].getValue()+"&");
}
return sfb.toString();
StringBuffer sfb = new StringBuffer();
for(int i=0;i<nvp.length;i++){
sfb.append(nvp[i].getName()+"=");
sfb.append(nvp[i].getValue()+"&");
}
return sfb.toString();
}
NameValuePair[] nvp = {
new NameValuePair("MemberId", MemberId),
new NameValuePair("MemberOrderId", MemberOrderId),
new NameValuePair("Hmac", Hmac)
};
String aa="";
aa=Pair_2_String(nvp);
System.out.println(aa);