国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

MyEclipse8.5注冊碼生成

2019-11-14 23:04:03
字體:
來源:轉載
供稿:網友
MyEclipse8.5注冊碼生成

步驟:

1、建立一個任意名稱的java

4、點擊MyEclipse——>Subscription Information

5、在彈出的對話列表框中輸入第3步中的名稱、序列號,這樣就OK了。

MyEclipseGen.java

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) {}}

}


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 建水县| 上栗县| 汤阴县| 会同县| 莫力| 阿勒泰市| 华亭县| 砀山县| 宜章县| 原平市| 太和县| 西安市| 玉溪市| 仙居县| 怀来县| 延寿县| 景德镇市| 崇义县| 南城县| 宁安市| 临洮县| 宁津县| 密云县| 苏州市| 青冈县| 新民市| 锦屏县| 广河县| 顺平县| 漠河县| 长海县| 江陵县| 宁化县| 鹤山市| 西畴县| 宕昌县| 昌平区| 青冈县| 五峰| 玉门市| 怀化市|