专家术语学习机

来源:互联网 发布:中小学排课软件 编辑:程序博客网 时间:2024/04/28 22:42
public class PhraseOMatic//注意不能再字符串“”中间加换行符,否则不能编译并运行{public static void main(String[] args){String[] wordListOne={"24/7","multiTier","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","paradign","mission"};int oneLength=wordListOne.length;int twoLength=wordListTwo.length;int threeLength=wordListThree.length;int rand1=(int)(Math.random()*oneLength);int rand2=(int)(Math.random()*twoLength);int rand3=(int)(Math.random()*threeLength);String phrase=wordListOne[rand1]+" "+wordListTwo[rand2]+" "+wordListThree[rand3];System.out.println("What we need is a "+phrase);}}

0 0
原创粉丝点击