[Code]Write a program to sell cut cake "I heard cut cake is very hot recently, very sell money. So I also want to make a fortune ......"
View sourcePrint?01public class Slice cake sale {02 03 public static void main(String[] args) throws Exception{04 String [] Many slice slices = {"Its","Real","Th","1","Times","Listen","Say","Yes","Pai","Sell","Cut","Cake","Guang","Notice","I","Yes","Reject","Never","",",","Because","Is",",","You","No","Yes","Let","I","Pai",",","I","Just","Ma","Up","Go","Pai","。","Th","1","I","Yes","Try","1","Bottom",",","Because","Is","I","No","Think","Pai","End","Up","","After","Again","Plus","1","Some","Special","Technology","Up","Go",",","Cut","Cake","" Renew "","1","Bottom",",","Very","Bright ,","Very","Province","Fort",",","This","Sample","Guan","Public","Outbound","Come","1","Ding","Yes","Scold","I",",","Root","Ben","No","Yes","This","Sample","","Cut","Cake",",","Just","Certificate","Ming","Up","Face","That","Items","Yes","False","","。","After","Come","I","Also","Jing","Over","Certificate","Real","He","They","True","Real","Yes","Goods","True","Price","Real","","Cut","Cake",",","I","Sell","Big","Overview","1","Items","Month","Left","Right",",","Sense","Jue","Also","No","Error",",","Sell","Up","Several","Hundred","Items","Ten Thousand",",","After","Come","I","In","Sell","","Hour","Hou","Also","Yes","Please","He","They","No","Yes","Plus","Special","Technology",",","Because","Is","I","Yes","Let","Guan","Public","Look","",",","I","Sell","End","Zhi","After","Yes","This","Items","Bird","Sample",",","You","They","Sell","End","Zhi","After","Also","Yes","Yes","This","Items","Xiong","Sample","!"};05 while(true){06 for(int i = 0; I <many slice. length; I ++ ){07 System. out. print (many slashes [I]);08 Thread.sleep(150);09 }10 System.out.println("");11 System.out.println("-------------------- Try again --------------------");12 Thread.sleep(5000); 13 }14 }15 16 }