我得到了 ArrayList 作为示例:-
<Data><No1><time>16:32</time><Number>2</Number></No1><No2><time>14:32</time><Number>3</Number></No2></Data>
如何根据时间获取时间值 16:32。我不想使用子字符串。任何想法都可以基于关键时间来获得值(value)。
提前致谢。
最佳答案
使用 HashMap Se this link for details
关于java - android 根据 arraylist 中的键获取值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20112196/