What is the best way to instantiate a 172820 String Array in Android?
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.
精彩评论