首页 > 文章

MyEclipse6.注册码

文章 06-01 0 注册码

myeclipse6.0注册码

View Code

1 package test; 2 import java.io.*; 3 public class GetSerialNum { 4 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."; 5 public String getSerial(String userId, String licenseNum) { 6 java.util.Calendar cal = java.util.Calendar.getInstance(); 7 cal.add(1, 3); 8 cal.add(6, -1); 9 java.text.NumberFormat nf = new java.text.DecimalFormat("000"); 10 licenseNum = nf.format(Integer.valueOf(licenseNum)); 11 String verTime = new StringBuilder("-").append(new java.text. 12 SimpleDateFormat("yyMMdd").format(cal.getTime())).append("0"). 13 toString(); 14 String type = "YE3MP-"; 15 String need = new StringBuilder(userId.substring(0, 1)).append(type). 16 append("300").append(licenseNum).append(verTime).toString(); 17 String dx = new StringBuilder(need).append(LL).append(userId).toString(); 18 int suf = this.decode(dx); 19 String code = new StringBuilder(need).append(String.valueOf(suf)). 20 toString(); 21 return this.change(code); 22 } 23 private int decode(String s) { 24 int i; 25 char[] ac; 26 int j; 27 int k; 28 i = 0; 29 ac = s.toCharArray(); 30 j = 0; 31 k = ac.length; 32 while (j < k) { 33 i = (31 * i) + ac[j]; 34 j++; 35 } 36 return Math.abs(i); 37 } 38 private String change(String s) { 39 byte[] abyte0; 40 char[] ac; 41 int i; 42 int k; 43 int j; 44 abyte0 = s.getBytes(); 45 ac = new char[s.length()]; 46 i = 0; 47 k = abyte0.length; 48 while (i < k) { 49 j = abyte0[i]; 50 if ((j >= 48) && (j <= 57)) { 51 j = (((j - 48) + 5) % 10) + 48; 52 } else if ((j >= 65) && (j <= 90)) { 53 j = (((j - 65) + 13) % 26) + 65; 54 } else if ((j >= 97) && (j <= 122)) { 55 j = (((j - 97) + 13) % 26) + 97; 56 } 57 ac[i] = (char) j; 58 i++; 59 } 60 return String.valueOf(ac); 61 } 62 public GetSerialNum() { 63 super(); 64 } 65 public static void main(String[] args) { 66 try { 67 System.out.println("please input register name:"); 68 BufferedReader reader = new BufferedReader(new InputStreamReader( 69 System.in)); 70 String userId = null; 71 userId = reader.readLine(); 72 GetSerialNum serialNum = new GetSerialNum(); 73 String res = serialNum.getSerial(userId, "20"); 74 System.out.println("Serial:" + res); 75 reader.readLine(); 76 } catch (IOException ex) { 77 } 78 } 79 }

备注:转载,原文地址不详;可以生成MyEclipse6.0的注册码—可用

  • 聂耳是什么家1970-01-01
  • 那个泸指是什么呢?1970-01-01
  • 鬼魂会跟着哪种人 鬼魂为什么会跟着人1970-01-01
  • ps怎么将图像插值设置为两次立方-图像插值设置为两次立方教程1970-01-01
  • 乔任梁倒吊图片真实,求乔任梁图片1970-01-01
  • GBK编码具体解析(附GBK码位分布图)1970-01-01
  • 本轮疫情已扩散至14省份,31省区市新增48例本土确诊1970-01-01
  • 蓝花丹的花语_蓝花丹的寓意和象征是什么?1970-01-01
  • 汕头大学分数线:汕头大学一般要多少分才能考上1970-01-01
  • pink是什么意思啊1970-01-01
  • 本文地址:https://www.ytsfc.com/show-1-19993-0.html

    • 大结局为什么萧炎杀药老

      大结局为什么萧炎杀药老

      原著大结局为什么萧炎杀药老​1、原因就是萧炎自身的原因了。萧炎是远古八族之萧族的后人,萧炎手中的古玉是打开古帝遗迹的关键。收集古玉是药老他们一直的使命。所以,药老追...

    • 车标志识别图片大全  【图片】

      车标志识别图片大全 【图片】

      每一辆汽车都有自己的品牌标志,用于告诉大家它们的生产厂家。下面我们来认识一下一些比较常见的汽车标志,有不认识的小伙伴赶快记下来!中国汽车最著名的要属:奇瑞、吉利、长城、...

    • 达咩啥意思:达咩为什么不能随便说

      达咩啥意思:达咩为什么不能随便说

      哒咩什么意思达咩的意思是不行,不许,不可以的意思。达咩是日语的中文读音译字,是一句比较生活化的日常用语。日语常用语还有,晚安对长辈:お休みなさい(哦呀斯米那赛),再见:さようなら...

    • 水浒传人物介绍:水浒传15个人物介绍

      水浒传人物介绍:水浒传15个人物介绍

      水浒传15个人物介绍1, 及时雨,呼保义,宋江:及时雨:总在别人需要的时候出现 2,玉麒麟,卢俊义 ,麒麟是神兽,是百兽之长 富甲天下,仗义疏财3,智多星,吴用 智多星,聪明,智慧多多的上界星辰...

    评论底部pc
    评论底部 m

    豆豆的家

    http://www.ytsfc.com/

    '); })(); | 京ICP1234567-2号

    Powered By 电视大师网 XXX公司

    使用手机软件扫描微信二维码

    关注我们可获取更多热点资讯

    感谢小豆豆技术支持