have this String "name=jack&age=22&true&red" and i want to get all the value as sperate String i can get the first value by this but don't know how to get the other
String text = "name=jack&age=22&true&red" ; var splitText = text.split("&") ; // [name=jack, age=22, true, red] var firstValue= splitText.first ; // name=jack
By index:
splitText[1] // age=22 splitText[2] // true splitText[3] // red
1.4m articles
1.4m replys
5 comments
56.9k users