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的安装目 ......
将java项目生成exe可执行文件全过程
2009年05月10日 星期日 16:30
一、首先为eclipse安装fatjar插件(如果你的jar项目中需要用到图片、外部程序等文件时要用此插件打包程序才能正常运行)
安装方式有两种:方法1:在线安装(推荐)
步骤:
eclipse菜单栏 help >software updates >Find and install >Search f ......
/**
* 直接插入排序,首先比较a[n]与a[n-1],在比较a[n]与a[n-2]
* */
public void sort0(double[] a){
for(int i = 0; i < a.length -1; i ++){
......
群内一位培训老师发出来一个问题:
int[][] a = new int[10][10];
这种多维数组会在栈上生成几个对象?
这个问题新鲜,没人问过.
发出来后 大家都认为有几个元素 就会生成几个对象.
我开始也
这么认为.
于是写个了程序试了下.发现没有那么简单
public static void main(String[] args) {
int[][] a = new int[10][10 ......