0% found this document useful (0 votes)
142 views1 page

Java Program Phrase-O-Matic

This Java program generates random business buzzword phrases by selecting a random word from each of three arrays containing words and combining them into a sentence. The program contains arrays of words typically found in business plans and missions with the last line printing a randomly generated phrase such as "What we need is a front-end targeted solution".

Uploaded by

Anamika Mondal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views1 page

Java Program Phrase-O-Matic

This Java program generates random business buzzword phrases by selecting a random word from each of three arrays containing words and combining them into a sentence. The program contains arrays of words typically found in business plans and missions with the last line printing a randomly generated phrase such as "What we need is a front-end targeted solution".

Uploaded by

Anamika Mondal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

public class PhraseOMatic { public static void main( String arg[]) { String wordlist1[] = {"24/7","multi-tier","30,000 foot","B-to-B","win-wi n","front-end","web-based","pervasive","smart","six-sigma","critical-path","dyna mic"};

String wordlist2[] = {"empowered","sticky","value-added","oriented","cen tric","distributed","clustered","branded","outside-the-box","positioned","networ ked","focused","leveraged","aligned","targeted","shared","cooperative","accelera ted"}; String wordlist3[]={"process","tipping-point","solution","architecture", "core competency","strategy","mindshare","portal","space","vision","paradigm","m ission"}; int onelength=wordlist1.length; int twolength=wordlist2.length; int threelength=wordlist3.length; int ran1 = (int) (Math.random()*onelength); int ran2 = (int) (Math.random()*twolength); int ran3 = (int) (Math.random()*threelength); String phrase= wordlist1[ran1] + " " + wordlist2[ran2] +" " +wordlist3[r an3]; System.out.println("What we need is a " + phrase); } }

You might also like