当前位置: 代码迷 >> Android >> 如何得到一个数组中指定的字符串
  详细解决方案

如何得到一个数组中指定的字符串

热度:13   发布时间:2016-05-01 18:13:44.0
怎么得到一个数组中指定的字符串?
/mnt/sdcard/VideosZip/1339730718.wmv, /mnt/sdcard/VideosZip/list.xml 前面是一个数组里面的数据,我得到/mnt/sdcard/VideosZip/list.xml 这个字符。还有我不知道我要得到的字符在数组中位置?

------解决方案--------------------
探讨

遍历了得到了两个字符串/mnt/sdcard/VideosZip/1339730718.wmv,和/mnt/sdcard/VideosZip/list.xml ,那我改怎么判断得到.xml文件?

------解决方案--------------------
遍历后进行equals比较
  相关解决方案