求解,表示没看懂。
aide吧
全部回复
仅看楼主
level 10
柚子℃ 楼主
import java.util.*;
public class Main
{
public static void main(String[] args)
{
String[] wordLisOne = {"24/7","multi-Tier","30,000 foo","B-to-B","win-win","front-end","web-based","pervasive","smart","six-sigma","critical-path","dynamic"};
String[] wordLisTwo = {"empowered" ,"sticky" ,"value-added", "oriented" ,
"centric", "distributed", "clustered", "branded", "outside-the-box",
"positioned", "networed", "focused", "leveraged", "aligned", };
String[] wordLisThree = { "process","tipping-point", "solution", "architecture",
"core competency","stategy", "mindshare","portal","space", "vision", "paradigm"
,"mission"};
int oneLength =wordLisOne.length;
int twoLength = wordLisTwo.length;
int threeLength=wordLisThree.length;
int rand1=(int)(Math.random()*oneLength);
int rand2=(int)(Math.random()*twoLength);
int rand3=(int)(Math.random()*threeLength);
String phrase = wordLisOne[rand1]+""+wordLisTwo[rand2]+""+wordLisThree[rand3];
System.out.println("What we need is a "+phrase);
2016年07月27日 12点07分 1
level 13
这个例子很眼熟啊,head first Java?
2016年07月27日 12点07分 2
你想知道什么
2016年07月27日 12点07分
[真棒]对,就是这个
2016年07月27日 23点07分
回复 Then_YH :[黑线]就是不晓得啥意思跟书上说的运行出来不一样
2016年07月27日 23点07分
@柚子℃ 你发现没,每次运行的结果都不同
2016年07月28日 00点07分
1