First off let me say I’m a beginner at programming. So far I’ve done only one android app that did little more than go out to the net, grab some data and do some simple calculations on it. I quite enjoyed that and would like to continue to try to learn by coding.
I have another idea I would like to turn into an app:
I have 2 lists of words. One with about 50,000 words and the other with nearly 100,000 words. What I want to do is randomly pick one word from each of those lists and keep picking until the first character of both words is the same.
But right off the bat I find myself stuck because I don’t know the proper way of storing those lists for my purpose(plain txt? csv? xml? something else?).
Could someone please point me in the right direction? It seems like I’m getting nowhere by googling alone.
With this many words in both data set, it could be quite long to pick at random until the first letter matches.
Here’s an idea to make this faster. Store both data in a SQLite table. Then you can select a random first letter and query a random row from each table which begins with your letter. For example, the following query returns one random row with a column’s value beginning by A