Android Phrase o-matic
<p>I'd like to port this little program to Android, thing is that im level basic -1 at android, what the program does is that it randomly creates a phrase taken from strings in an array. I know how to make a button to show me an xml from the layout resources but thatjust works with textviews that do not change, Could you please tell me which steps to follow in order to display a randomly generated string taken from the array of strings?</p>

<p>heres the code(head first java):</p>

<pre><code>public class PhraseOMatic
{
 public static void main (String[] args)
 {
 String[] wordListOne = {"24/7", "multi-tier", "30,OOO foot", "B-to-B" , "win-win" , "frontend", "web- based" , "pervasive", "smart", "sixsigma", "critical-path", "dynamic"};
 String[] wordListTwo = {"empowered", "sticky", "value-added", "oriented", "centric", "distributed", "clustered", "branded", "outaide-the-box", "positioned", "networked", "focused", "leveraged", "aligned", "targeted", "shared", "cooperative", "accelerated"};
 String[] wordListThree = {"process", "tipping-point", "solution", "architecture", "core competency", "strategy", "mindshare", "portal", "space", "vision", "paradigm", "session"};

 // find out how many words are in each list
 int oneLenqth = wordListOne.length;
 int twoLength = wordListTwo.length;
 int threeLength = wordListThree.length;

 // generate .... random numbers
 int randl = (int) (Math.random() * oneLenqth);
 int rand2 = (int) (Math.random() * twoLength);
 int rand3 = (int) (Math.random() * threeLength);

 //now build a phrase
 String phrase = wordListOne[randl] + " " + wordListTwo[rand2] + " " + wordListThree[rand3];

 // print out the phrase
 System.out.println("What we need is a " + phrase);
 }
}
</code></pre>
