What we really need is a Phrase-O-Matic (written in Java of course)...
public class PhraseOMatic {
public static void main (string[] args) {
// Create three arrays of words.
String[] wordListOne = {"24/7", "Multi-Tier", "30,000 foot", "B-to-B", "win-win", "front-end", "web-based", "pervasive", "smart", "six-sigma",
"critical path", "dynamic"};
String[] wordListTwo = {"empowered", "sticky", "value-added", "oriented", "centric", "distributed", "clustered", "branded", "outside-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", "mission"};
//Determine length of each array.
int oneLength = wordListOne.length;
int twoLength = wordListTwo.length;
int threeLength = wordListThree.length;
//Generate three random numbers within the scope of each list.
int rand1 = (int) (math.random() * oneLength);
int rand2 = (int) (math.random() * twoLength);
int rand3 = (int) (math.random() * threeLength);
// Build a phrase.
String phrase = wordListOne[rand1] + " " + wordListTwo[rand2] + " " + wordListThree[rand3];
//Print the phrase.
System.out.println ("What we need is a " + phrase);
}
}
I didn’t think this up myself, it’s an exercise from my “
Head First Java” book and it's all starting to make sense to me. I’m going to enjoy learning Java.
Note: I’m meeting the human version of the Phrase-O-Matic (otherwise know as Napoleon to his friends) for beers this evening.