DreamAngel
如果你希望成功,以恒心為良友,以經(jīng)驗(yàn)為參謀,以小心為兄弟,以希望為哨兵。
BlogJava
首頁(yè)
新隨筆
聯(lián)系
聚合
管理
隨筆 - 147 文章 - 71 trackbacks - 0
<
2011年10月
>
日
一
二
三
四
五
六
25
26
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
我的其它Blog:
www.cppblog.com/dreamangel/
blog.csdn.net/fjnu_angel/
常用鏈接
我的隨筆
我的評(píng)論
我的參與
最新評(píng)論
留言簿
(1)
給我留言
查看公開(kāi)留言
查看私人留言
隨筆分類(lèi)
(146)
ACM(28)
ajax(9)
eclipse(3)
Game(6)
Hibernate(1)
java(20)
javascript(19)
jfreechart(3)
jfreereport(1)
JSP(16)
linux(4)
log4j(3)
Spring(1)
SQL(7)
Struts(3)
Tomcat(3)
其它(12)
正則表達(dá)式(3)
網(wǎng)絡(luò)管理(2)
軟件設(shè)計(jì)(2)
隨筆檔案
(147)
2015年4月 (1)
2013年9月 (2)
2013年8月 (1)
2013年3月 (1)
2012年8月 (2)
2012年7月 (1)
2012年6月 (1)
2012年5月 (2)
2012年3月 (2)
2012年2月 (1)
2012年1月 (2)
2011年12月 (3)
2011年11月 (6)
2011年10月 (6)
2011年9月 (1)
2010年5月 (1)
2010年4月 (1)
2010年1月 (1)
2009年12月 (3)
2009年11月 (7)
2009年10月 (7)
2009年9月 (9)
2009年8月 (6)
2009年7月 (17)
2009年6月 (8)
2009年5月 (8)
2009年4月 (4)
2009年3月 (17)
2009年2月 (16)
2009年1月 (10)
文章分類(lèi)
(28)
foj(3)
poj(15)
spoj(9)
zoj(1)
文章檔案
(28)
2010年9月 (2)
2010年7月 (1)
2009年9月 (14)
2009年8月 (11)
喜歡的Blog
BeanSoft
fuhoujun
yoyo
不朽的飛翔
樂(lè)在其中
宇天
我和hacker有個(gè)約會(huì)
銀河使者
阿蜜果
搜索
最新評(píng)論
1.?re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名[未登錄](méi)
5656
--lk
2.?re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名
henhaoyong
--wuxiaoming
3.?re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名
wuxiaoming
--wuxiaoming
4.?re: js獲得table單元格的信息
颯沓
--阿爾
5.?re: log4j:ERROR Failed to rename錯(cuò)誤解決辦法[未登錄](méi)
謝謝樓主,問(wèn)題解決!
--bobo
閱讀排行榜
1.?用戶權(quán)限管理設(shè)計(jì)(33602)
2.?關(guān)于路由器設(shè)置DI-504的401 Unauthorized authorization required(19093)
3.?ubuntu下gcc的安裝與使用(18764)
4.?Proguard使用教程(12620)
5.?ExtJS的tbar布局(10595)
評(píng)論排行榜
1.?MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名(14)
2.?用戶權(quán)限管理設(shè)計(jì)(9)
3.?OA系統(tǒng)權(quán)限管理設(shè)計(jì)方案(7)
4.?判斷一個(gè)月有多少天(正確的方法)(4)
5.?泰訊軟件數(shù)據(jù)庫(kù)筆試題目(SQL Server 2000版)(3)
MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名
import
java.io.BufferedReader;
import
java.io.IOException;
import
java.io.InputStreamReader;
public
class
MyEclipseGen
{
private
static
final
String LL
=
"
Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up to a $500,000 fine or up to five years imprisonment for a first offense. Think about it; pay for a license, avoid prosecution, and feel better about yourself.
"
;
public
String getSerial(String userId, String licenseNum)
{
java.util.Calendar cal
=
java.util.Calendar.getInstance();
cal.add(
1
,
3
);
cal.add(
6
,
-
1
);
java.text.NumberFormat nf
=
new
java.text.DecimalFormat(
"
000
"
);
licenseNum
=
nf.format(Integer.valueOf(licenseNum));
String verTime
=
new
StringBuilder(
"
-
"
).append(
new
java.text.SimpleDateFormat(
"
yyMMdd
"
).format(cal.getTime()))
.append(
"
0
"
).toString();
String type
=
"
YE3MP-
"
;
String need
=
new
StringBuilder(userId.substring(
0
,
1
)).append(type)
.append(
"
300
"
).append(licenseNum).append(verTime).toString();
String dx
=
new
StringBuilder(need).append(LL).append(userId)
.toString();
int
suf
=
this
.decode(dx);
String code
=
new
StringBuilder(need).append(String.valueOf(suf))
.toString();
return
this
.change(code);
}
private
int
decode(String s)
{
int
i;
char
[] ac;
int
j;
int
k;
i
=
0
;
ac
=
s.toCharArray();
j
=
0
;
k
=
ac.length;
while
(j
<
k)
{
i
=
(
31
*
i)
+
ac[j];
j
++
;
}
return
Math.abs(i);
}
private
String change(String s)
{
byte
[] abyte0;
char
[] ac;
int
i;
int
k;
int
j;
abyte0
=
s.getBytes();
ac
=
new
char
[s.length()];
i
=
0
;
k
=
abyte0.length;
while
(i
<
k)
{
j
=
abyte0[i];
if
((j
>=
48
)
&&
(j
<=
57
))
{
j
=
(((j
-
48
)
+
5
)
%
10
)
+
48
;
}
else
if
((j
>=
65
)
&&
(j
<=
90
))
{
j
=
(((j
-
65
)
+
13
)
%
26
)
+
65
;
}
else
if
((j
>=
97
)
&&
(j
<=
122
))
{
j
=
(((j
-
97
)
+
13
)
%
26
)
+
97
;
}
ac[i]
=
(
char
) j;
i
++
;
}
return
String.valueOf(ac);
}
public
MyEclipseGen()
{
super
();
}
public
static
void
main(String[] args)
{
try
{
System.out.println(
"
please input register name:
"
);
BufferedReader reader
=
new
BufferedReader(
new
InputStreamReader(
System.in));
String userId
=
null
;
userId
=
reader.readLine();
MyEclipseGen myeclipsegen
=
new
MyEclipseGen();
String res
=
myeclipsegen.getSerial(userId,
"
5
"
);
System.out.println(
"
Serial:
"
+
res);
reader.readLine();
}
catch
(IOException ex)
{
}
}
}
posted on 2011-10-14 20:31
飛翔天使
閱讀(8640)
評(píng)論(14)
編輯
收藏
所屬分類(lèi):
eclipse
FeedBack:
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名 2013-01-22 09:41
huwei
xiexie
回復(fù)
更多評(píng)論
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名 2013-10-12 17:23
qingdeng
qingdeng
回復(fù)
更多評(píng)論
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名 2013-11-01 09:55
馬駿
真心
回復(fù)
更多評(píng)論
#
生成注冊(cè)碼 2013-11-26 13:07
萬(wàn)艷紅
暫無(wú)評(píng)論內(nèi)容
回復(fù)
更多評(píng)論
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名 2013-12-18 08:17
thanks
thanks
回復(fù)
更多評(píng)論
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名 2014-01-12 15:49
Only丨惟一
123
回復(fù)
更多評(píng)論
#
123[未登錄](méi) 2014-01-12 15:54
123
456
回復(fù)
更多評(píng)論
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名 2014-05-29 15:10
lineking
shishi
回復(fù)
更多評(píng)論
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名 2014-08-06 09:32
qingyn
太棒了,絕對(duì)好用!謝謝!萬(wàn)分感謝!
回復(fù)
更多評(píng)論
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名 2014-09-01 08:19
yhuahua
太好用了,非常感謝!
回復(fù)
更多評(píng)論
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名 2014-09-12 11:10
王彩霞
很好用,謝謝
回復(fù)
更多評(píng)論
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名 2016-04-13 17:23
wuxiaoming
henhaoyong
回復(fù)
更多評(píng)論
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名 2016-04-13 17:23
wuxiaoming
wuxiaoming
回復(fù)
更多評(píng)論
#
re: MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名[未登錄](méi)
2016-05-23 16:11
lk
5656
回復(fù)
更多評(píng)論
新用戶注冊(cè)
刷新評(píng)論列表
只有注冊(cè)用戶
登錄
后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問(wèn)
管理
相關(guān)文章:
myeclipse優(yōu)化設(shè)定
MyEclipse6.5 注冊(cè)碼生成方法,自己輸入用戶名
使用links方式安裝Eclipse插件
Copyright ©2025 飛翔天使 Powered by:
博客園
模板提供:
滬江博客
主站蜘蛛池模板:
四虎永久在线精品免费影视
|
久久这里只精品99re免费
|
久久久久国色AV免费看图片
|
亚洲一卡2卡三卡4卡有限公司
|
成人免费一区二区三区
|
久久精品国产亚洲5555
|
国产日韩在线视频免费播放
|
国产精品亚洲mnbav网站
|
国产成人精品日本亚洲专一区
|
午夜无码A级毛片免费视频
|
久久精品国产亚洲
|
99re在线视频免费观看
|
亚洲人成电影青青在线播放
|
久久精品网站免费观看
|
色欲aⅴ亚洲情无码AV
|
亚洲av麻豆aⅴ无码电影
|
中文字幕乱码系列免费
|
亚洲福利在线观看
|
国产在线jyzzjyzz免费麻豆
|
亚洲中文字幕久久精品无码A
|
好爽好紧好大的免费视频国产
|
亚洲A∨精品一区二区三区下载
|
国产乱弄免费视频
|
美女在线视频观看影院免费天天看
|
亚洲综合视频在线
|
欧美大尺寸SUV免费
|
国产亚洲精品精品精品
|
亚洲精品国精品久久99热一
|
久久ww精品w免费人成
|
亚洲av无码专区在线观看下载
|
国产成人免费手机在线观看视频
|
亚洲精品美女久久久久9999
|
色窝窝免费一区二区三区
|
在线视频亚洲一区
|
久久91亚洲人成电影网站
|
国产成人免费网站
|
少妇亚洲免费精品
|
亚洲国产美女精品久久
|
亚洲国产精品一区二区三区久久
|
久久aⅴ免费观看
|
国产AV无码专区亚洲AV麻豆丫
|