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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -