BlueSpace
思想有多遠(yuǎn),我們就能走多遠(yuǎn)!
BlogJava
::
首頁(yè)
::
新隨筆
::
聯(lián)系
::
聚合
::
管理
posts - 0, comments - 5, trackbacks - 0
<
2025年6月
>
日
一
二
三
四
五
六
25
26
27
28
29
30
31
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
1
2
3
4
5
留言簿
(1)
給我留言
查看公開留言
查看私人留言
我參與的團(tuán)隊(duì)
深圳Java俱樂部(0/0)
文章分類
ajax(1)
hibernate(4)
java(21)
javasrcipt(13)
mysql數(shù)據(jù)庫(kù)(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)
相冊(cè)
my photo
http://www.aygfsteel.com/beansoft
http://www.aygfsteel.com/sterning
http://www.aygfsteel.com/sterning
搜索
最新評(píng)論
1.?re: xfire aegis轉(zhuǎn)
評(píng)論內(nèi)容較長(zhǎng),點(diǎn)擊標(biāo)題查看
--啊啊啊
2.?re: xfire aegis轉(zhuǎn)
itn
--吃飯會(huì)非常
3.?re: distinct 與 order by
“select * from test group by name”這個(gè)SQL語句有問題,執(zhí)行不了
--didi
4.?re: java讀取excel文件
good,so well,
--1111
5.?re: 正則表達(dá)式,不區(qū)分大小寫的替換
評(píng)論內(nèi)容較長(zhǎng),點(diǎn)擊標(biāo)題查看
--新手。
數(shù)據(jù)統(tǒng)計(jì),棧操作(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
閱讀(186)
評(píng)論(0)
編輯
收藏
所屬分類:
java
新用戶注冊(cè)
刷新評(píng)論列表
只有注冊(cè)用戶
登錄
后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關(guān)文章:
java HttpClient
html正則處理
正則2
正則
java的時(shí)間處理
xfire 集合 aegis
xfire aegis轉(zhuǎn)
轉(zhuǎn)載
判斷是否存在中文
java正則表達(dá)式
Powered by:
BlogJava
Copyright ©2025 crazy
主站蜘蛛池模板:
竹北市
|
广河县
|
土默特右旗
|
青河县
|
汉寿县
|
天柱县
|
雅江县
|
淳安县
|
海林市
|
诏安县
|
怀宁县
|
吴桥县
|
历史
|
阿拉尔市
|
叶城县
|
宜州市
|
普陀区
|
同德县
|
项城市
|
滨州市
|
余江县
|
仲巴县
|
临沭县
|
吉隆县
|
扬中市
|
荥经县
|
白城市
|
黄冈市
|
永寿县
|
佛学
|
青浦区
|
东平县
|
盈江县
|
新源县
|
视频
|
中宁县
|
页游
|
赤城县
|
张家口市
|
土默特右旗
|
黄山市
|