Menu

[r9]: / Chapter 1 Code / PhaseOMatic.java  Maximize  Restore  History

Download this file

22 lines (17 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class PhaseOMatic {
public static void main(String[] args) {
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"};
int oneLenght = wordListOne.length;
int twoLenght = wordListTwo.length;
int threeLenght = wordListThree.length;
//Да се науча как се пише length!!! Не е lengHT!!!
int Rand1 = (int) (Math.random() * oneLenght);
int Rand2 = (int) (Math.random() * twoLenght);
int Rand3 = (int) (Math.random() * threeLenght);
String phrase = wordListOne[Rand1] + " " + wordListTwo[Rand2] + " " + wordListThree[Rand3];
System.out.println("What we need is " + phrase);
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.