-
-
import java.io.BufferedReader;
import java.io.InputStreamReader;
public String getSerial(String userId, String licenseNum) {
java.util.Calendar cal = java.util.Calendar.getInstance();
java.text.NumberFormat nf = new java.text.DecimalFormat("000");
licenseNum = nf.format(Integer.valueOf(licenseNum));
String dx = new StringBuilder(need).append(LL).append(userId).toString();
String code = new StringBuilder(need).append(String.valueOf(suf)).toString();
private int decode(String s) {
private String change(String s) {
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;
public static void main(String[] args) {
System.out.println("please input register name:");
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
MyEclipseGen myeclipsegen = new MyEclipseGen();
String res = myeclipsegen.getSerial(userId, "5");
-
然后输入一个英文名,会生成注册码
-
点击ok。