开发者

What is the best way to instantiate a 172820 String Array in Android?

开发者 https://www.devze.com 2023-03-15 06:46 出处:网络
I have a text file of words or Strings there is 172820 lines and each line is to be one word or element.What is the best way to instantiate the array.I will have to parse the array as well.For example

I have a text file of words or Strings there is 172820 lines and each line is to be one word or element. What is the best way to instantiate the array. I will have to parse the array as well. For example I need to be able to see which words starts with the letter 'z' or 'a' etc开发者_JS百科... I need to instantiate a large array and be able to parse it. What is the best way to do this?


The best way, given that you need to search your strings, and given that there are quite many of them, is probably to store these words in database, and use SQL queries to find the ones you're looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号