Until you change the array of words (its constant), a static variable should be good for you.
However, if you just keep words, I would suggest using SharedPreferences .
Otherwise, if you have big plans for this SQLite , this is the best way for you. The advantage of SQLite is that it offers a manageable and reliable way to store and access your data and is very reliable. Moreover, if you ever wanted to grow your number of words (say, hundreds of thousands), then SQLite handle this without any problems.
source share