資源描述:
《MyEclipse注冊碼免費(fèi)生成代碼》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、在myeclipse中建一個MyEclipseGen.java然后吧下面內(nèi)容考進(jìn)去,運(yùn)行這個java程序,在控制臺要你輸入一個字符串,你隨便,回車后就會自動生成一個注冊碼的,如inputyourname:yds---------:xxxxxxxxxxxxxxxxxxxxxxxxxx那就是Subscriber:ydsSubNULLionCode:xxxxxxxxxxxxxxxxxxxxxxxxxxx然后你就用這個注冊就行了。importjava.io.*;publicclassMyEclipseGen{privatestaticfinalStri
2、ngLL="DecompilingthiscopyrightedsoftwareisaviolationofbothyourlicenseagreementandtheDigitalMilleniumCopyrightActof1998(http://www.loc.gov/copyright/legislation/dmca.pdf).Undersection1204oftheDMCA,penaltiesrangeuptoa$500,000fineoruptofiveyearsimprisonmentforafirstoffense.Thin
3、kaboutit;payforalicense,avoidprosecution,andfeelbetteraboutyourself.";//定義一個String字符串publicStringgetSerial(StringuserId,StringlicenseNum){java.util.Calendarcal=java.util.Calendar.getInstance();cal.add(1,3);cal.add(6,-1);java.text.NumberFormatnf=newjava.text.DecimalFormat("00
4、0");licenseNum=nf.format(Integer.valueOf(licenseNum));StringverTime=newStringBuilder("-").append(newjava.text.SimpleDateFormat("yyMMdd").format(cal.getTime())).append("0").toString();Stringtype="YE3MP-";Stringneed=newStringBuilder(userId.substring(0,1)).append(type).append("
5、300").append(licenseNum).append(verTime).toString();Stringdx=newStringBuilder(need).append(LL).append(userId).toString();intsuf=this.decode(dx);Stringcode=newStringBuilder(need).append(String.valueOf(suf)).toString();returnthis.change(code);}privateintdecode(Strings){inti;ch
6、ar[]ac;intj;intk;i=0;ac=s.toCharArray();j=0;k=ac.length;while(j=48)&&(j<=5
7、7)){j=(((j-48)+5)%10)+48;}elseif((j>=65)&&(j<=90)){j=(((j-65)+13)%26)+65;}elseif((j>=97)&&(j<=122)){j=(((j-97)+13)%26)+97;}ac[i]=(char)j;i++;}returnString.valueOf(ac);}publicMyEclipseGen(){super();}publicstaticvoidmain(String[]args){try{System.out.println("pleaseinputregiste
8、rname:");BufferedReaderreader=newBufferedReader(newInputStreamReader(System