自动生成MyEclipse6.0.1注册码 myeclipse6.0.1注册码

复制以下代码:

package test;
import java.io.*;
public class MyEclipseGen {
privatestatic final String LL = "Decompiling this copyrighted software isa violation of both your license agreement and the DigitalMillenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf).Under section 1204 of the DMCA, penalties range up to a $500,000fine or up to five years imprisonment for a first offense. Thinkabout it; pay for a license, avoid prosecution, and feel betterabout yourself.";
publicString 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 = newjava.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 = newStringBuilder(need).append(LL).append(userId).toString();
int suf = this.decode(dx);
String code = newStringBuilder(need).append(String.valueOf(suf)).
toString();
自动生成MyEclipse6.0.1注册码 myeclipse6.0.1注册码
return this.change(code);
}
private intdecode(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);
}
privateString 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);
}
publicMyEclipseGen() {
super();
}
publicstatic void main(String[] args) {
try {
System.out.println("please input register name:");
BufferedReader reader = new BufferedReader(newInputStreamReader(
System.in));
String userId = null;
userId = reader.readLine();
MyEclipseGen myeclipsegen = new MyEclipseGen();
String res = myeclipsegen.getSerial(userId, "20");
System.out.println("Serial:" + res);
reader.readLine();
} catch (IOException ex) {
}
}
}

运行该代码,在控制台中会出现:

please input register name:
×××××(你的name)
即生成序列号。
如:
please input register name:
woniu
Serial:jLR8ZC-855575-60525754180783

这就可以生成注册码啦。

  

爱华网本文地址 » http://www.aihuau.com/a/25101018/370628.html

更多阅读

Excel教程:如何在Excel中自动生成人民币大写

Excel教程:如何在Excel中自动生成人民币大写——简介在Excel中使用单元格设置--特殊--中文大写数字生成的中文大写,不符合中国人对人民币大写数额的书写习惯。比如132.57,使用该设置生成的是:壹佰叁拾贰.伍柒,如何才能生成符号中国人书写

office--Word2003中怎样设置自动生成目录 word2003如何生成目录

office--Word2003中怎样设置自动生成目录——简介微软Word这个软件大家都很熟悉,但有不少功能我们并没有用到,其中不乏非常实用的。今天给大家介绍一下如何用Word自动生成目录。这对那些用Word写书,写论文的朋友很有帮助。  优点:用Wo

论文目录怎么自动生成 word目录怎么自动生成

论文目录怎么自动生成——简介每年都有大学生要毕业,而毕业的大学生在忙着写论文过程之中,总会遇到这么一个问题,即写好的论文怎么自动生成目录。我是今年毕业的,对如何自动生成论文目录记忆犹新,故而就趁着还熟练的时候,把经验分享给大家

word2007目录怎么自动生成 精 word2007怎样生成目录

最近很多人进入了论文阶段,而目录是论文中必不可少的一部分,而word2007中的目录自动生成和修改是一个非常赞的工具,今天就word2007自动生成目录把我的操作和大家分享下。希望对大家有帮助。word2007目录怎么自动生成 精——工具/原料

Word图表目录怎么自动生成 word2010生成图表目录

Word图表目录怎么自动生成——简介我们日常工作的时候,编辑word文档是家常便饭,自动生成目录也是必做的,那么,对于图片,我们如果很多的话,我们也会最好做好图片的目录,那么对于图表的目录该怎么自动生成呢?今天笔者就来跟大家分享一下,供大家

声明:《自动生成MyEclipse6.0.1注册码 myeclipse6.0.1注册码》为网友我酷你随意分享!如侵犯到您的合法权益请联系我们删除