java技術(shù)博客
jsp博客
BlogJava
首頁
新隨筆
聯(lián)系
聚合
管理
數(shù)據(jù)加載中……
java1.5注解(二)
import
java.util.Date;
import
java.util.Map;
import
java.util.TreeMap;
class
SuppressWarningsTest
{
public
static
void
main(String[] args)
{
Map
<
String,Date
>
map
=
new
TreeMap
<
String,Date
>
();
map.put(
"
hello
"
,
new
Date());
System.out.println(map.get(
"
hello
"
));
}
}
import
java.util.Date;
import
java.util.Map;
import
java.util.TreeMap;
class
SuppressWarningsTest2
{
public
static
void
main(String[] args)
{
Map map
=
new
TreeMap();
//
Map<String,Date> map=new TreeMap<String,Date>();
map.put(
"
hello
"
,
new
Date());
System.out.println(map.get(
"
hello
"
));
}
}
import
java.util.Date;
import
java.util.Map;
import
java.util.TreeMap;
class
SuppressWarningsTest3
{
@SuppressWarnings(
"
unchecked
"
)
public
static
void
main(String[] args)
{
Map map
=
new
TreeMap();
//
Map<String,Date> map=new TreeMap<String,Date>();
map.put(
"
hello
"
,
new
Date());
System.out.println(map.get(
"
hello
"
));
}
}
import
java.util.Date;
import
java.util.Map;
import
java.util.TreeMap;
class
DeprecatedTest
{
public
void
doSomething()
{
System.out.println(
"
guoxinghua
"
);
}
public
static
void
main(String[] args)
{
DeprecatedTest test
=
new
DeprecatedTest();
test.doSomething();
}
}
class
SuppressWarningsTest2
{
public
static
void
main(String[] args)
{
Map map
=
new
TreeMap();
//
Map<String,Date> map=new TreeMap<String,Date>();
map.put(
"
hello
"
,
new
Date());
System.out.println(map.get(
"
hello
"
));
}
}
import
java.util.Date;
import
java.util.Map;
import
java.util.TreeMap;
class
DeprecatedTest
{
public
void
doSomething()
{
System.out.println(
"
guoxinghua
"
);
}
public
static
void
main(String[] args)
{
DeprecatedTest test
=
new
DeprecatedTest();
test.doSomething();
}
}
class
SuppressWarningsTest2
{
@SuppressWarnings(
{
"
unchecked
"
,
"
deprecation
"
}
)
public
static
void
main(String[] args)
{
Map map
=
new
TreeMap();
//
Map<String,Date> map=new TreeMap<String,Date>();
map.put(
"
hello
"
,
new
Date());
System.out.println(map.get(
"
hello
"
));
DeprecatedTest test
=
new
DeprecatedTest();
test.doSomething();
}
}
posted on 2008-10-26 00:21
郭興華
閱讀(366)
評論(0)
編輯
收藏
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發(fā)表評論。
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
Powered by:
BlogJava
Copyright © 郭興華
<
2008年10月
>
日
一
二
三
四
五
六
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
統(tǒng)計
隨筆 - 84
文章 - 1
評論 - 2
引用 - 0
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(3)
給我留言
查看公開留言
查看私人留言
隨筆分類
java每日練習(xí)代碼
(rss)
TESTARRAY(6)
(rss)
事件模型與事件處理
(rss)
隨筆檔案
2009年1月 (2)
2008年11月 (14)
2008年10月 (68)
文章檔案
2008年10月 (1)
搜索
最新評論
1.?re: jsp讀取*.TXT
請問 retstr是什么數(shù)據(jù)類型?String?好像不行哦
--jsp
2.?re: StudentTest1.java
看不懂你的意思,代碼沒有縮進(jìn),看著很不習(xí)慣那。
--楊愛友
閱讀排行榜
1.?java中的treemap(4606)
2.?JDBC連接SQLSERVER(1824)
3.?判斷一個一個路徑是否是目錄(1087)
4.?jsp讀取*.TXT(767)
5.?java代理模式(728)
評論排行榜
1.?StudentTest1.java(1)
2.?jsp讀取*.TXT(1)
3.?java1.5注解(二)(0)
4.?java1.5注解(一)(0)
5.?jsp中使用類(0)
主站蜘蛛池模板:
巫溪县
|
徐汇区
|
久治县
|
宜丰县
|
广平县
|
阿拉善左旗
|
九台市
|
万年县
|
阿图什市
|
芜湖市
|
蓬莱市
|
文山县
|
石泉县
|
宿州市
|
长治县
|
印江
|
师宗县
|
义马市
|
交口县
|
留坝县
|
华容县
|
房产
|
鄂州市
|
江城
|
偃师市
|
平利县
|
宁化县
|
姚安县
|
土默特左旗
|
改则县
|
运城市
|
句容市
|
营山县
|
同仁县
|
宁夏
|
庐江县
|
江西省
|
灵璧县
|
沾化县
|
栾川县
|
舟山市
|