MyEclipse自动生成注册码的java类
将以下内容复制Eclipse中运行,随意输入一个用户名,程序会自动计算出注册码,绝对能用!!!
package sun;
import java.io.*;
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(); &n
相关文档:
系统属性是指与用户程序相关的操作系统配置信息以及软件信息。通常与用户程序相关的属性关键字包括:
●file.separator:文件分隔符,Windows环境下为“",Unix环境下为“/”;
●user.home:用户主目录;
●java.home:Java实时运行环境的安装目录;
●java.ext.dirs:JDK的安装目 ......
一、Axis安装 1、环境 J2SE SDK 1.3 or 1.4: 我使用 1.4.2 Servlet Container: 我使用的Tomcat 5.0
2、到 http://ws.apache.org/Axis/网站下载Axis安装包
3、解压缩安装包,将Axis_UNZIP_PATH\Axis-version\webapps下的Axis包拷贝到TOMCAT_HOME\webapps\下,以下约定Axis_HOME为该TOMCAT_HOME\webapps\Axis目录
4、启动 ......
/**
* 直接插入排序,首先比较a[n]与a[n-1],在比较a[n]与a[n-2]
* */
public void sort0(double[] a){
for(int i = 0; i < a.length -1; i ++){
......
package debug;import java.io.*;import java.lang.Thread;class MyThread extends Thread{ public int x = 0; public void run(){ System.out.println(++x); }}class R implements Runnable{ private int x = 0; public void run(){ System.out.printl ......
package debug;import java.io.*;import java.lang.Thread;class MyThread extends Thread{ public int x = 0; public void run(){ System.out.println(++x); }}class R implements Runnable{ private int x = 0; public void run(){ System.out.printl ......