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 = new myeclipsegen (); string res = myeclipsegen. getserial (userid, "5"); system. out. println ("Serial:" + Res); reader. readline ();} catch (ioexception ex ){}}}