java技術博客
jsp博客
BlogJava
首頁
新隨筆
聯系
聚合
管理
數據加載中……
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
郭興華
閱讀(361)
評論(0)
編輯
收藏
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
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
統計
隨筆 - 84
文章 - 1
評論 - 2
引用 - 0
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(3)
給我留言
查看公開留言
查看私人留言
隨筆分類
java每日練習代碼
(rss)
TESTARRAY(6)
(rss)
事件模型與事件處理
(rss)
隨筆檔案
2009年1月 (2)
2008年11月 (14)
2008年10月 (68)
文章檔案
2008年10月 (1)
搜索
最新評論
1.?re: jsp讀取*.TXT
請問 retstr是什么數據類型?String?好像不行哦
--jsp
2.?re: StudentTest1.java
看不懂你的意思,代碼沒有縮進,看著很不習慣那。
--楊愛友
閱讀排行榜
1.?java中的treemap(4604)
2.?JDBC連接SQLSERVER(1822)
3.?判斷一個一個路徑是否是目錄(1085)
4.?jsp讀取*.TXT(764)
5.?java代理模式(727)
評論排行榜
1.?StudentTest1.java(1)
2.?jsp讀取*.TXT(1)
3.?java1.5注解(二)(0)
4.?java1.5注解(一)(0)
5.?jsp中使用類(0)
主站蜘蛛池模板:
肇庆市
|
天等县
|
新昌县
|
云梦县
|
唐河县
|
合山市
|
平山县
|
清徐县
|
伊宁县
|
红桥区
|
杂多县
|
广饶县
|
左权县
|
临朐县
|
四子王旗
|
吉安县
|
甘肃省
|
黔南
|
兴安盟
|
阳谷县
|
西林县
|
南召县
|
濮阳市
|
寿阳县
|
紫阳县
|
晋城
|
斗六市
|
南郑县
|
新和县
|
武陟县
|
察隅县
|
新源县
|
安国市
|
金溪县
|
道孚县
|
苏尼特右旗
|
怀集县
|
克东县
|
铜鼓县
|
鄱阳县
|
天台县
|