Reputation: 24448
The seems like it would be easy and basic but I just don't know enough about Java/Android and don't know how to get a specific value from an array. Do you have to iterate though it or can you just call the key/value pair or smth? Any example would be grateful.
thanks e.g.
String[] x = Pattern.compile(";").split(CookieManager.getInstance().getCookie(URL));
Now if there is a key of ID how do I get that value which should be the 2nd key? X[1]? Just doesn't work.
Upvotes: 0
Views: 96
Reputation: 82
String a = x[0];
String b = x[1];
or
for (String z : x)
{
String valor = z;
}
I wait help you!
Upvotes: 1