Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这似乎很简单和基本,但我对 Java/Android 的了解不够,也不知道如何从数组中获取特定值。您是否必须对其进行迭代,或者您可以只调用键/值对或smth吗?任何例子将不胜感激。
谢谢,例如
String[] x = Pattern.compile(";").split(CookieManager.getInstance().getCookie(URL));
现在,如果有一个 ID 键,我如何获得应该是第二个键的值?X[1]?就是行不通。
String a = x[0]; String b = x[1];
或者
for (String z : x) { String valor = z; }
我等着帮你!