HZAU-JAVA技術群:7435949
學習Java從零開始-見證2006-Java之路
My Links
BlogJava
首頁
新隨筆
聯系
聚合
管理
Blog Stats
Posts - 42
Stories - 0
Comments - 3
Trackbacks - 0
News
努力總是有希望的。
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(1)
給我留言
查看公開留言
查看私人留言
隨筆分類
(42)
Java(13)
(rss)
日志(29)
(rss)
隨筆檔案
(42)
2006年1月 (42)
搜索
積分與排名
積分 - 6941
排名 - 2769
最新評論
1.?re: Test_java
dasfdsafds
--sd
2.?re: import myjava.PlotOtau和import myjava.*的區別?
評論內容較長,點擊標題查看
--Allen
3.?re: import myjava.PlotOtau和import myjava.*的區別?
首先你要確認你的路徑是完全正確的
--理想
閱讀排行榜
1.?import myjava.PlotOtau和import myjava.*的區別?(399)
2.?ArrayPrint(266)
3.?StringDemo(244)
4.?夜(225)
5.?IntegerDemo(219)
6.?ClassDemo(213)
7.?女孩子(212)
8.?StringBufferDemo(208)
9.?ComplexNumber(205)
10.?CharacterDemo(199)
評論排行榜
1.?import myjava.PlotOtau和import myjava.*的區別?(2)
2.?Test_java(1)
3.?IntegerDemo(0)
4.?ClassDemo(0)
5.?ComplexNumber(0)
DayShower
1
class
DayShower
2
{
3
public
static
void
main(String[] args)
4
{
5
int
yearIn
=
2004
;
6
int
monthIn
=
2
;
7
if
(args.length
>
0
)
8
{
9
monthIn
=
Integer.parseInt(args[
0
]);
10
}
11
if
(args.length
>
1
)
12
{
13
yearIn
=
Integer.parseInt(args[
1
]);
14
}
15
System.out.println(yearIn
+
"
?ê
"
+
monthIn
+
"
??óD
"
+
countDays(monthIn,yearIn)
+
"
ìì
"
);
16
}
17
static
int
countDays(
int
month,
int
year)
18
{
19
int
count
=-
1
;
20
switch
(month)
21
{
22
case
1
:
23
case
3
:
24
case
5
:
25
case
7
:
26
case
8
:
27
case
10
:
28
case
12
: count
=
21
;
break
;
29
case
4
:
30
case
6
:
31
case
9
:
32
case
11
: count
=
30
;
break
;
33
case
2
:
34
if
(year
%
4
==
0
)
35
{
36
count
=
29
;
37
}
38
else
39
{
40
count
=
28
;
41
}
42
if
((year
%
100
==
0
)
&
(year
%
400
!=
0
))
43
{
44
count
=
28
;
45
}
46
}
47
return
count;
48
}
49
}
posted on 2006-01-07 17:56
Allen
閱讀(129)
評論(0)
編輯
收藏
所屬分類:
Java
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
import myjava.PlotOtau和import myjava.*的區別?
ClassDemo
ComplexNumber
ArrayPrint
StringBufferDemo
StringDemo
CharacterDemo
CalendarDemo
MathDemo
DayShower
Powered by:
BlogJava
Copyright © Allen
主站蜘蛛池模板:
本溪市
|
凤台县
|
朔州市
|
旬阳县
|
黔西
|
广安市
|
旺苍县
|
南涧
|
丹江口市
|
无锡市
|
玉林市
|
泰来县
|
安仁县
|
玛纳斯县
|
尤溪县
|
浮梁县
|
平顶山市
|
长沙市
|
松潘县
|
恩平市
|
衡阳县
|
攀枝花市
|
平江县
|
桑植县
|
昌乐县
|
浙江省
|
南开区
|
康平县
|
汕尾市
|
余江县
|
安国市
|
金川县
|
徐州市
|
宁蒗
|
大田县
|
游戏
|
铜鼓县
|
专栏
|
乌拉特后旗
|
宿州市
|
宁陵县
|