android - key="value"&key="value" String parsing in Java -


this question has answer here:

how can parse string success="true"&sign_type="rsa"&sign="xxx"

("" included in original string) map or javabean?

 map<string, string> map = new hashmap<string, string>();       string[] arr = str.split("&");  for(string s : arr){    strng[] = s.split("=");    map.put(a[0],a[1]);  } 

Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -