say love to my mother

01 public class MothersDayFromCodeMonkeyView
02 {
03     public MothersDayFromCodeMonkeyView()
04     {
05         int age=0;
06         saying="crying";
07         while(true)
08         {
09             try
10             {
11                 Thread.sleep(365 * 24 * 60 * 60 * 1000L);
12             }
13             catch (InterruptedException e)
14             {
15                 break;
16             }
17             age++;
18             switch(age)
19             {
20             case 3:
21                 saying = "妈妈,我爱您";
22                 break;
23             case 10:
24                 saying = "妈,听您的";
25                 break;
26             case 16:
27                 saying = "我妈真的很烦";
28                 break;
29             case 18:
30                 saying = "想要离开这个家";
31                 break;
32             case 25:
33                 saying = "妈,您当时是对的";
34                 break;
35             case 30:
36                 saying = "我想要去我妈家";
37                 break;
38             case 50:
39                 saying = "我不想要失去我妈";
40                 break;
41             case unknownAge:
42                 saying = "只要我妈还能在这,我愿意为了我妈放弃一切";
43                 break;
44             default:
45                 saying = myDefine();
46                 break;
47             }
48         }
49         new Thread()
50         {
51             public void run()
52             {
53                 while(isPeopleStillLive())
54                 {
55                     saying = "每个人都只有一个妈妈,要好好的孝敬我们的妈妈!";
56                 }
57             }
58         }.start();   
59     }
60     public boolean isPeopleStillLive()
61     {
62         return true || false;
63     }
64     public String myDefine()
65     {
66         StringBuffer result = new StringBuffer();
67         result.append("没妈的春风化雨,我无法领略宽广世界");
68         result.append("我一直把妈当作朋友");
69         result.append("感谢妈,在我成长路上付出的汗水");
70         result.append("妈,你是我的自豪");
71         return result.toString();
72     }
73     private static final int unknownAge = 70;
74     private String saying ="";
75
76     public static void main(String[] args)
77     {
78         new MothersDayFromCodeMonkeyView();
79     }
80 }

发表评论

电子邮件地址不会被公开。 必填项已用*标注