BlueSpace
思想有多遠,我們就能走多遠!
BlogJava
::
首頁
::
新隨筆
::
聯系
::
聚合
::
管理
posts - 0, comments - 5, trackbacks - 0
<
2025年5月
>
日
一
二
三
四
五
六
27
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
留言簿
(1)
給我留言
查看公開留言
查看私人留言
我參與的團隊
深圳Java俱樂部(0/0)
文章分類
ajax(1)
hibernate(4)
java(21)
javasrcipt(13)
mysql數據庫(6)
spring
文章檔案
2009年8月 (1)
2009年3月 (2)
2008年10月 (1)
2008年7月 (3)
2008年6月 (11)
2008年3月 (1)
2008年2月 (1)
2007年12月 (11)
2007年11月 (3)
2007年9月 (13)
相冊
my photo
http://www.tkk7.com/beansoft
http://www.tkk7.com/sterning
http://www.tkk7.com/sterning
搜索
最新評論
1.?re: xfire aegis轉
評論內容較長,點擊標題查看
--啊啊啊
2.?re: xfire aegis轉
itn
--吃飯會非常
3.?re: distinct 與 order by
“select * from test group by name”這個SQL語句有問題,執行不了
--didi
4.?re: java讀取excel文件
good,so well,
--1111
5.?re: 正則表達式,不區分大小寫的替換
評論內容較長,點擊標題查看
--新手。
數據統計,棧操作(2)
if
(CountConstants.cArrayStackA?
==
?
null
)
????????????????CountConstants.cArrayStackA?
=
?
new
?CountViewArrayStack(CountConstants.CSTACKLENGH);
????????????
if
(CountConstants.cArrayStackB?
==
?
null
)
????????????????CountConstants.cArrayStackB?
=
?
new
?CountViewArrayStack(CountConstants.CSTACKLENGH);
AcceptEntity?aEntity?
=
?
new
?AcceptEntity();
CountManager?cManager?
=
?
new
?CountManager();
????????????
if
(CountConstants.CSTACKA)
????????????????cManager.countViewNum(CountConstants.cArrayStackA,aEntity);
????????????
else
?
if
(CountConstants.CSTACKB)
????????????????cManager.countViewNum(CountConstants.cArrayStackB,aEntity);
public
?
class
?CountManager?
{
????
????
public
?
void
?countViewNum(CountViewStack?cArrayStack,AcceptEntity?acceptEntity)
????
{
????????
try
????????
{?
????????????cArrayStack.push(acceptEntity);
????????????
????????????
//
System.out.println("Stack?["+type+"]?working?……?");
????????}
????????
catch
(FullViewStackException?e)
????????
{?
????????????
//
System.out.println?("Stack?[A]?is?Full!");
????????????
int
?i?
=
?
0
;
????????????Session?session
=
null
;
????????????Object[]?saveObj?
=
?
new
?Object[CountConstants.CSTACKLENGH];
????????????AcceptEntity?outEntity?
=
?
null
;
????????????
????????????
if
(CountConstants.CSTACKA)
????????????
{
????????????????CountConstants.CSTACKA?
=
?
false
;
????????????????CountConstants.CSTACKB?
=
?
true
;?
????????????}
????????????
else
????????????
{
????????????????CountConstants.CSTACKB?
=
?
false
;
????????????????CountConstants.CSTACKA?
=
?
true
;
????????????}
????????????
try
????????????
{
????????????????
while
?(
!
cArrayStack.isEmpty())
????????????????
{
????????????????????outEntity?
=
?(AcceptEntity)cArrayStack.pop();
????????????????????saveObj[i]?
=
?outEntity;
????????????????????i
++
;
????????????????????outEntity?
=
?
null
;
????????????????}
????????????????session?
=
?MailSessionManager.getMailSession();
????????????????EmailEntityManager.batchSave(saveObj,session);
????????????????
if
(session
!=
null
)?session.close();
????????????????
//
Hibernate.batchSave(saveObj);
????????????????saveObj?
=
?
null
;
????????????????
//
System.out.println("Stack?[A]?pop?end!!pop[A]:"+iTempList.length);
????????????????cArrayStack.push(acceptEntity);
????????????}
????????????
catch
(java.util.EmptyStackException?ex)
????????????
{
????????????????System.out.println(
"
Error-->countViewNum()
"
+
ex.getMessage());
????????????}
finally
{
????????????????
if
(session
!=
null
)?session.close();
????????????}
????????}
catch
(Exception?ex)
????????
{
????????????ex.printStackTrace();
????????}
????}
}
posted on 2007-09-26 09:14
crazy
閱讀(183)
評論(0)
編輯
收藏
所屬分類:
java
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
java HttpClient
html正則處理
正則2
正則
java的時間處理
xfire 集合 aegis
xfire aegis轉
轉載
判斷是否存在中文
java正則表達式
Powered by:
BlogJava
Copyright ©2025 crazy
主站蜘蛛池模板:
亚洲妇女水蜜桃av网网站
|
亚洲欧洲∨国产一区二区三区
|
亚洲黄色网站视频
|
一级毛片免费观看
|
7777久久亚洲中文字幕蜜桃
|
亚洲精品国精品久久99热一
|
www永久免费视频
|
日韩精品亚洲aⅴ在线影院
|
国产精品高清免费网站
|
亚洲啪啪综合AV一区
|
亚洲免费视频网站
|
亚洲欧洲日产国码www
|
国产成人A在线观看视频免费
|
国产成人精品日本亚洲18图
|
日韩免费视频在线观看
|
成年免费a级毛片
|
亚洲AV日韩AV永久无码下载
|
免费观看AV片在线播放
|
日韩色日韩视频亚洲网站
|
国产亚洲美女精品久久久
|
99精品视频免费观看
|
亚洲欧美日韩综合久久久
|
亚洲高清无码综合性爱视频
|
免费在线看污视频
|
亚洲午夜成激人情在线影院
|
国产精品免费看久久久无码
|
成人免费乱码大片A毛片
|
亚洲视频免费在线看
|
免费无码又爽又刺激高潮
|
99久久久国产精品免费无卡顿
|
亚洲一区二区三区乱码在线欧洲
|
国产成人免费网站在线观看
|
一级一级一级毛片免费毛片
|
久久久久久久亚洲Av无码
|
免费一级毛片女人图片
|
野花香高清视频在线观看免费
|
国产精品亚洲精品
|
亚洲一区二区三区香蕉
|
一二三四在线观看免费高清中文在线观看
|
亚洲av无码一区二区三区天堂古代
|
精品免费久久久久久成人影院
|